|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileReader
public class ClassFileReader
Field Summary |
---|
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.util.IClassFileReader |
---|
ALL, ALL_BUT_METHOD_BODIES, CLASSFILE_ATTRIBUTES, CONSTANT_POOL, FIELD_INFOS, METHOD_BODIES, METHOD_INFOS, SUPER_INTERFACES |
Constructor Summary | |
---|---|
ClassFileReader(byte[] classFileBytes,
int decodingFlags)
Constructor for ClassFileReader. |
Method Summary | |
---|---|
int |
getAccessFlags()
Answer back the access flag of the .class file. |
int |
getAttributeCount()
Answer back the attribute number of the .class file. |
IClassFileAttribute[] |
getAttributes()
Answer back the collection of all attributes of the field info. |
int |
getClassIndex()
Answer back the index of the class name in the constant pool of the .class file. |
char[] |
getClassName()
Answer back the qualified name of the .class file. |
IConstantPool |
getConstantPool()
Answer the constant pool of this .class file. |
IFieldInfo[] |
getFieldInfos()
Answer back the array of field infos of the .class file, an empty array if none. |
int |
getFieldsCount()
Answer back the number of field infos. |
IInnerClassesAttribute |
getInnerClassesAttribute()
Answer back the inner classes attribute of this .class file, null if none. |
int[] |
getInterfaceIndexes()
Answer back the indexes in the constant pool of interfaces implemented by this .class file, an empty array if none. |
char[][] |
getInterfaceNames()
Answer back the names of interfaces implemented by this .class file, an empty array if none. |
int |
getMagic()
Answer back the magic number. |
int |
getMajorVersion()
Answer the major version of this .class file. |
IMethodInfo[] |
getMethodInfos()
Answer back the array of method infos of this .class file, an empty array if none. |
int |
getMethodsCount()
Answer back the number of method infos. |
int |
getMinorVersion()
Answer the minor version of this .class file. |
ISourceAttribute |
getSourceFileAttribute()
Answer the source file attribute, if it exists, null otherwise. |
int |
getSuperclassIndex()
Answer back the index of the superclass name in the constant pool of the .class file. |
char[] |
getSuperclassName()
Answer back the qualified name of the superclass of this .class file. |
boolean |
isClass()
Answer true if this .class file represents an class, false otherwise. |
boolean |
isInterface()
Answer true if this .class file represents an interface, false otherwise. |
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct |
---|
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassFileReader(byte[] classFileBytes, int decodingFlags) throws ClassFormatException
classFileBytes
- the raw bytes of the .class filedecodingFlags
- the decoding flags
ClassFormatException
IClassFileReader.ALL
,
IClassFileReader.CLASSFILE_ATTRIBUTES
,
IClassFileReader.CONSTANT_POOL
,
IClassFileReader.FIELD_INFOS
Method Detail |
---|
public int getAccessFlags()
IClassFileReader
getAccessFlags
in interface IClassFileReader
IClassFileReader.getAccessFlags()
public int getAttributeCount()
IClassFileReader
getAttributeCount
in interface IClassFileReader
IClassFileReader.getAttributeCount()
public IClassFileAttribute[] getAttributes()
IClassFileReader
getAttributes
in interface IClassFileReader
IClassFileReader.getAttributes()
public int getClassIndex()
IClassFileReader
getClassIndex
in interface IClassFileReader
IClassFileReader.getClassIndex()
public char[] getClassName()
IClassFileReader
getClassName
in interface IClassFileReader
IClassFileReader.getClassName()
public IConstantPool getConstantPool()
IClassFileReader
getConstantPool
in interface IClassFileReader
IClassFileReader.getConstantPool()
public IFieldInfo[] getFieldInfos()
IClassFileReader
getFieldInfos
in interface IClassFileReader
IClassFileReader.getFieldInfos()
public int getFieldsCount()
IClassFileReader
getFieldsCount
in interface IClassFileReader
IClassFileReader.getFieldsCount()
public IInnerClassesAttribute getInnerClassesAttribute()
IClassFileReader
getInnerClassesAttribute
in interface IClassFileReader
IClassFileReader.getInnerClassesAttribute()
public int[] getInterfaceIndexes()
IClassFileReader
getInterfaceIndexes
in interface IClassFileReader
IClassFileReader.getInterfaceIndexes()
public char[][] getInterfaceNames()
IClassFileReader
getInterfaceNames
in interface IClassFileReader
IClassFileReader.getInterfaceNames()
public int getMagic()
IClassFileReader
getMagic
in interface IClassFileReader
IClassFileReader.getMagic()
public int getMajorVersion()
IClassFileReader
getMajorVersion
in interface IClassFileReader
IClassFileReader.getMajorVersion()
public IMethodInfo[] getMethodInfos()
IClassFileReader
getMethodInfos
in interface IClassFileReader
IClassFileReader.getMethodInfos()
public int getMethodsCount()
IClassFileReader
getMethodsCount
in interface IClassFileReader
IClassFileReader.getMethodsCount()
public int getMinorVersion()
IClassFileReader
getMinorVersion
in interface IClassFileReader
IClassFileReader.getMinorVersion()
public ISourceAttribute getSourceFileAttribute()
IClassFileReader
getSourceFileAttribute
in interface IClassFileReader
IClassFileReader.getSourceFileAttribute()
public int getSuperclassIndex()
IClassFileReader
getSuperclassIndex
in interface IClassFileReader
IClassFileReader.getSuperclassIndex()
public char[] getSuperclassName()
IClassFileReader
getSuperclassName
in interface IClassFileReader
IClassFileReader.getSuperclassName()
public boolean isClass()
IClassFileReader
isClass
in interface IClassFileReader
IClassFileReader.isClass()
public boolean isInterface()
IClassFileReader
isInterface
in interface IClassFileReader
IClassFileReader.isInterface()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |