|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.types.reflect.Attribute
public abstract class Attribute
Attribute is an abstract class for an attribute defined for a method, field, or class. An attribute consists of its name (represented as an index into the constant pool) and its length. Attribute is extended to represent a constant value, code, exceptions, etc.
ConstantValue,
Exceptions| Field Summary | |
|---|---|
protected int |
length
|
protected int |
nameIndex
|
| Constructor Summary | |
|---|---|
Attribute(int nameIndex,
int length)
Constructor. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int nameIndex
protected int length
| Constructor Detail |
|---|
public Attribute(int nameIndex,
int length)
nameIndex - The index into the constant pool of the name of the attribute.length - The length of the attribute, excluding the header.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||