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
ConstructorsConstructorDescriptionComponentInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) -
Method Summary
Modifier and TypeMethodDescriptionintAnswer 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.intAnswer back the descriptor index of this component info.char[]getName()Answer back the name of this component info.intAnswer back the name index of this component info.intAnswer back the total sizeMethods inherited from class ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptionprotected doubledoubleAt(byte[] reference, int relativeOffset, int structOffset) protected floatfloatAt(byte[] reference, int relativeOffset, int structOffset) protected inti1At(byte[] reference, int relativeOffset, int structOffset) protected inti2At(byte[] reference, int relativeOffset, int structOffset) protected inti4At(byte[] reference, int relativeOffset, int structOffset) protected longi8At(byte[] reference, int relativeOffset, int structOffset) protected intu1At(byte[] reference, int relativeOffset, int structOffset) protected intu2At(byte[] reference, int relativeOffset, int structOffset) protected intu4At(byte[] reference, int relativeOffset, int structOffset) Returns an 32 bit integer created of 4 bytes.protected char[]utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
-
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:IComponentInfoAnswer back the attribute number of the component info.- Specified by:
getAttributeCountin interfaceIComponentInfo- Returns:
- the attribute number of the component info
- See Also:
-
getAttributes
Description copied from interface:IComponentInfoAnswer back the collection of all attributes of the component info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none.- Specified by:
getAttributesin interfaceIComponentInfo- Returns:
- the collection of all attributes of the component info. Returns an empty collection if none
- See Also:
-
getDescriptor
public char[] getDescriptor()Description copied from interface:IComponentInfoAnswer back the descriptor of this component info. The descriptor is returned as specified in the JVM specifications.- Specified by:
getDescriptorin interfaceIComponentInfo- Returns:
- the descriptor of this component info. The descriptor is returned as specified in the JVM specifications
- See Also:
-
getDescriptorIndex
public int getDescriptorIndex()Description copied from interface:IComponentInfoAnswer back the descriptor index of this component info.- Specified by:
getDescriptorIndexin interfaceIComponentInfo- Returns:
- the descriptor index of this component info
- See Also:
-
getName
public char[] getName()Description copied from interface:IComponentInfoAnswer back the name of this component info. The name is returned as specified in the JVM specifications.- Specified by:
getNamein interfaceIComponentInfo- Returns:
- the name of this component info. The name is returned as specified in the JVM specifications
- See Also:
-
getNameIndex
public int getNameIndex()Description copied from interface:IComponentInfoAnswer back the name index of this component info.- Specified by:
getNameIndexin interfaceIComponentInfo- Returns:
- the name index of this component info
- See Also:
-
sizeInBytes
public int sizeInBytes()Description copied from interface:IComponentInfoAnswer back the total size- Specified by:
sizeInBytesin interfaceIComponentInfo- Returns:
- the size of the component info
-