public class ComponentInfo extends ClassFileStruct implements IComponentInfo
| Constructor and Description |
|---|
ComponentInfo(byte[] classFileBytes,
IConstantPool constantPool,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttributeCount()
Answer back the attribute number of the component info.
|
IClassFileAttribute[] |
getAttributes()
Answer back the collection of all attributes of the component info.
|
char[] |
getDescriptor()
Answer back the descriptor of this component info.
|
int |
getDescriptorIndex()
Answer back the descriptor index of this component info.
|
char[] |
getName()
Answer back the name of this component info.
|
int |
getNameIndex()
Answer back the name index of this component info.
|
int |
sizeInBytes()
Answer back the total size
|
public ComponentInfo(byte[] classFileBytes,
IConstantPool constantPool,
int offset)
throws ClassFormatException
classFileBytes - byte[]constantPool - IConstantPooloffset - intClassFormatExceptionpublic int getAttributeCount()
IComponentInfogetAttributeCount in interface IComponentInfoIComponentInfo.getAttributeCount()public IClassFileAttribute[] getAttributes()
IComponentInfogetAttributes in interface IComponentInfoIComponentInfo.getAttributes()public char[] getDescriptor()
IComponentInfogetDescriptor in interface IComponentInfoIComponentInfo.getDescriptor()public int getDescriptorIndex()
IComponentInfogetDescriptorIndex in interface IComponentInfoIComponentInfo.getDescriptorIndex()public char[] getName()
IComponentInfogetName in interface IComponentInfoIComponentInfo.getName()public int getNameIndex()
IComponentInfogetNameIndex in interface IComponentInfoIComponentInfo.getNameIndex()public int sizeInBytes()
IComponentInfosizeInBytes in interface IComponentInfo