|
|||||||||
| 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
ClassFormatExceptionIClassFileReader.ALL,
IClassFileReader.CLASSFILE_ATTRIBUTES,
IClassFileReader.CONSTANT_POOL,
IClassFileReader.FIELD_INFOS| Method Detail |
|---|
public int getAccessFlags()
IClassFileReader
getAccessFlags in interface IClassFileReaderIClassFileReader.getAccessFlags()public int getAttributeCount()
IClassFileReader
getAttributeCount in interface IClassFileReaderIClassFileReader.getAttributeCount()public IClassFileAttribute[] getAttributes()
IClassFileReader
getAttributes in interface IClassFileReaderIClassFileReader.getAttributes()public int getClassIndex()
IClassFileReader
getClassIndex in interface IClassFileReaderIClassFileReader.getClassIndex()public char[] getClassName()
IClassFileReader
getClassName in interface IClassFileReaderIClassFileReader.getClassName()public IConstantPool getConstantPool()
IClassFileReader
getConstantPool in interface IClassFileReaderIClassFileReader.getConstantPool()public IFieldInfo[] getFieldInfos()
IClassFileReader
getFieldInfos in interface IClassFileReaderIClassFileReader.getFieldInfos()public int getFieldsCount()
IClassFileReader
getFieldsCount in interface IClassFileReaderIClassFileReader.getFieldsCount()public IInnerClassesAttribute getInnerClassesAttribute()
IClassFileReader
getInnerClassesAttribute in interface IClassFileReaderIClassFileReader.getInnerClassesAttribute()public int[] getInterfaceIndexes()
IClassFileReader
getInterfaceIndexes in interface IClassFileReaderIClassFileReader.getInterfaceIndexes()public char[][] getInterfaceNames()
IClassFileReader
getInterfaceNames in interface IClassFileReaderIClassFileReader.getInterfaceNames()public int getMagic()
IClassFileReader
getMagic in interface IClassFileReaderIClassFileReader.getMagic()public int getMajorVersion()
IClassFileReader
getMajorVersion in interface IClassFileReaderIClassFileReader.getMajorVersion()public IMethodInfo[] getMethodInfos()
IClassFileReader
getMethodInfos in interface IClassFileReaderIClassFileReader.getMethodInfos()public int getMethodsCount()
IClassFileReader
getMethodsCount in interface IClassFileReaderIClassFileReader.getMethodsCount()public int getMinorVersion()
IClassFileReader
getMinorVersion in interface IClassFileReaderIClassFileReader.getMinorVersion()public ISourceAttribute getSourceFileAttribute()
IClassFileReader
getSourceFileAttribute in interface IClassFileReaderIClassFileReader.getSourceFileAttribute()public int getSuperclassIndex()
IClassFileReader
getSuperclassIndex in interface IClassFileReaderIClassFileReader.getSuperclassIndex()public char[] getSuperclassName()
IClassFileReader
getSuperclassName in interface IClassFileReaderIClassFileReader.getSuperclassName()public boolean isClass()
IClassFileReader
isClass in interface IClassFileReaderIClassFileReader.isClass()public boolean isInterface()
IClassFileReader
isInterface in interface IClassFileReaderIClassFileReader.isInterface()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||