Class ComponentInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ComponentInfo
-
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 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: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
-