fr.umlv.corosol.classfile.attribute
Interface JAttribute

All Superinterfaces:
JClassFileItem, JObject
All Known Subinterfaces:
JCodeAttribute, JConstantValueAttribute, JExceptionsAttribute
All Known Implementing Classes:
AbstractJAttribute, DefaultJCodeAttribute, DefaultJConstantValueAttribute, DefaultJExceptionsAttribute, JUnknownAttribute

public interface JAttribute
extends JClassFileItem

An object JAttribute represents an attribute i.e. an attribute_info structure of a clasfile.

There exists attributes which are predefined as part of the class file specification. The predefined attributes are the SourceFile, ConstantValue, Code, Exceptions, InnerClasses, Synthetic, LineNumberTable, LocalVariableTable, and Deprecated attributes. Within the context of their use in this specification, that is, in the attributes tables of the class file structures in which they appear, the names of these predefined attributes are reserved.

Author:
Christophe Deleray

Field Summary
static java.lang.String CODE
          The string representing the Code attribute.
static java.lang.String CONSTANT_VALUE
          The string representing ConstantValue attribute.
static java.lang.String DEPRECATED
          The string representing Deprecated attribute.
static java.lang.String EXCEPTIONS
          The string representing Exceptions attribute.
static java.lang.String INNER_CLASSES
          The string representing InnerClasses attribute.
static java.lang.String LINE_NUMBER_TABLE
          The string representing LineNumberTable attribute.
static java.lang.String LOCAL_VARIABLE_TABLE
          The string representing LocalVariableTable attribute.
static java.lang.String SOURCE_FILE
          The string representing SourceFile attribute.
static java.lang.String SYNTHETIC
          The string representing Synthetic attribute.
 
Method Summary
 java.lang.String getName()
          Returns the attribute name.
 int getSize()
          Returns the size of the attribute in bytes.
 java.lang.String toString()
          Returns a string representation of this attribute.
 
Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem
getConstantPool, readItem, setConstantPool, writeItem
 

Field Detail

CODE

static final java.lang.String CODE
The string representing the Code attribute.

See Also:
Constant Field Values

CONSTANT_VALUE

static final java.lang.String CONSTANT_VALUE
The string representing ConstantValue attribute.

See Also:
Constant Field Values

DEPRECATED

static final java.lang.String DEPRECATED
The string representing Deprecated attribute.

See Also:
Constant Field Values

EXCEPTIONS

static final java.lang.String EXCEPTIONS
The string representing Exceptions attribute.

See Also:
Constant Field Values

INNER_CLASSES

static final java.lang.String INNER_CLASSES
The string representing InnerClasses attribute.

See Also:
Constant Field Values

LINE_NUMBER_TABLE

static final java.lang.String LINE_NUMBER_TABLE
The string representing LineNumberTable attribute.

See Also:
Constant Field Values

LOCAL_VARIABLE_TABLE

static final java.lang.String LOCAL_VARIABLE_TABLE
The string representing LocalVariableTable attribute.

See Also:
Constant Field Values

SOURCE_FILE

static final java.lang.String SOURCE_FILE
The string representing SourceFile attribute.

See Also:
Constant Field Values

SYNTHETIC

static final java.lang.String SYNTHETIC
The string representing Synthetic attribute.

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Returns the attribute name.


getSize

int getSize()
Returns the size of the attribute in bytes.


toString

java.lang.String toString()
Returns a string representation of this attribute.

Overrides:
toString in class java.lang.Object