Class ComponentInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ComponentInfo
- All Implemented Interfaces:
IComponentInfo
Default implementation of IComponentInfo.
-
Constructor Summary
ConstructorDescriptionComponentInfo(byte[] classFileBytes, IConstantPool constantPool, int offset)
-
Method Summary
Modifier and TypeMethodDescriptionint
Answer back the attribute number of the component info.Answer back the collection of all attributes of the component info.char[]
Answer back the descriptor of this component info.int
Answer back the descriptor index of this component info.char[]
getName()
Answer back the name of this component info.int
Answer back the name index of this component info.int
Answer back the total size
-
Constructor Details
-
ComponentInfo
public ComponentInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException- Parameters:
classFileBytes
- byte[]constantPool
- IConstantPooloffset
- int- Throws:
ClassFormatException
-
-
Method Details
-
getAttributeCount
public int getAttributeCount()Description copied from interface:IComponentInfo
Answer back the attribute number of the component info.- Specified by:
getAttributeCount
in interfaceIComponentInfo
- Returns:
- the attribute number of the component info
- See Also:
IComponentInfo.getAttributeCount()
-
getAttributes
Description copied from interface:IComponentInfo
Answer back the collection of all attributes of the component info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none.- Specified by:
getAttributes
in interfaceIComponentInfo
- Returns:
- the collection of all attributes of the component info. Returns an empty collection if none
- See Also:
IComponentInfo.getAttributes()
-
getDescriptor
public char[] getDescriptor()Description copied from interface:IComponentInfo
Answer back the descriptor of this component info. The descriptor is returned as specified in the JVM specifications.- Specified by:
getDescriptor
in interfaceIComponentInfo
- Returns:
- the descriptor of this component info. The descriptor is returned as specified in the JVM specifications
- See Also:
IComponentInfo.getDescriptor()
-
getDescriptorIndex
public int getDescriptorIndex()Description copied from interface:IComponentInfo
Answer back the descriptor index of this component info.- Specified by:
getDescriptorIndex
in interfaceIComponentInfo
- Returns:
- the descriptor index of this component info
- See Also:
IComponentInfo.getDescriptorIndex()
-
getName
public char[] getName()Description copied from interface:IComponentInfo
Answer back the name of this component info. The name is returned as specified in the JVM specifications.- Specified by:
getName
in interfaceIComponentInfo
- Returns:
- the name of this component info. The name is returned as specified in the JVM specifications
- See Also:
IComponentInfo.getName()
-
getNameIndex
public int getNameIndex()Description copied from interface:IComponentInfo
Answer back the name index of this component info.- Specified by:
getNameIndex
in interfaceIComponentInfo
- Returns:
- the name index of this component info
- See Also:
IComponentInfo.getNameIndex()
-
sizeInBytes
public int sizeInBytes()Description copied from interface:IComponentInfo
Answer back the total size- Specified by:
sizeInBytes
in interfaceIComponentInfo
- Returns:
- the size of the component info
-