public class ClassFileAttribute extends ClassFileStruct implements IClassFileAttribute
| Modifier and Type | Field and Description |
|---|---|
static IClassFileAttribute[] |
NO_ATTRIBUTES |
| Constructor and Description |
|---|
ClassFileAttribute(byte[] classFileBytes,
IConstantPool constantPool,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAttributeLength()
Answer back the attribute length as specified
in the JVM specifications.
|
char[] |
getAttributeName()
Answer back the attribute name as specified
in the JVM specifications.
|
int |
getAttributeNameIndex()
Answer back the attribute name index in the constant pool as specified
in the JVM specifications.
|
public static final IClassFileAttribute[] NO_ATTRIBUTES
public ClassFileAttribute(byte[] classFileBytes,
IConstantPool constantPool,
int offset)
throws ClassFormatException
ClassFormatExceptionpublic int getAttributeNameIndex()
IClassFileAttributegetAttributeNameIndex in interface IClassFileAttributepublic char[] getAttributeName()
IClassFileAttributegetAttributeName in interface IClassFileAttributeIClassFileAttribute.getAttributeName()public long getAttributeLength()
IClassFileAttributegetAttributeLength in interface IClassFileAttributeIClassFileAttribute.getAttributeLength()