Klasse ClassFileReader
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileReader
- Alle implementierten Schnittstellen:
IClassFileReader
-
Feldübersicht
Von Schnittstelle geerbte Felder 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 -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungClassFileReader(byte[] classFileBytes, int decodingFlags) Constructor for ClassFileReader. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintAnswer back the access flags of the .class file.intAnswer back the attribute number of the .class file.Answer back the collection of all attributes of the field info.intAnswer back the index of the class name in the constant pool of the .class file.char[]Answer back the qualified name of the .class file.Answer the constant pool of this .class file.Answer back the array of field infos of the .class file, an empty array if none.intAnswer back the number of field infos.Answer back the inner classes attribute of this .class file, null if none.int[]Answer back the indexes in the constant pool of interfaces implemented by this .class file, an empty array if none.char[][]Answer back the names of interfaces implemented by this .class file, an empty array if none.intgetMagic()Answer back the magic number.intAnswer the major version of this .class file.Answer back the array of method infos of this .class file, an empty array if none.intAnswer back the number of method infos.intAnswer the minor version of this .class file.Answer back the nest members attribute of this .class file, null if none.Answer back the permitted subclasses attribute of this .class file, null if none.Answer back the record attribute of this .class file, null if none.Answer the source file attribute, if it exists, null otherwise.intAnswer back the index of the superclass name in the constant pool of the .class file.char[]Answer back the qualified name of the superclass of this .class file.booleanisClass()Answer true if this .class file represents a class, false otherwise.booleanAnswer true if this .class file represents an interface, false otherwise.
-
Konstruktordetails
-
ClassFileReader
Constructor for ClassFileReader.- Parameter:
classFileBytes- the raw bytes of the .class filedecodingFlags- the decoding flags- Löst aus:
ClassFormatException- Siehe auch:
-
-
Methodendetails
-
getAccessFlags
public int getAccessFlags()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the access flags of the .class file.- Angegeben von:
getAccessFlagsin SchnittstelleIClassFileReader- Gibt zurück:
- the access flags of the .class file
- Siehe auch:
-
getAttributeCount
public int getAttributeCount()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the attribute number of the .class file.- Angegeben von:
getAttributeCountin SchnittstelleIClassFileReader- Gibt zurück:
- the attribute number of the .class file
- Siehe auch:
-
getAttributes
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Answers an empty array if none.- Angegeben von:
getAttributesin SchnittstelleIClassFileReader- Gibt zurück:
- the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Answers an empty array if none
- Siehe auch:
-
getClassIndex
public int getClassIndex()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the index of the class name in the constant pool of the .class file.- Angegeben von:
getClassIndexin SchnittstelleIClassFileReader- Gibt zurück:
- the index of the class name in the constant pool
- Siehe auch:
-
getClassName
public char[] getClassName()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the qualified name of the .class file. The name is returned as described in the JVM specifications.- Angegeben von:
getClassNamein SchnittstelleIClassFileReader- Gibt zurück:
- the qualified name of the .class file
- Siehe auch:
-
getConstantPool
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer the constant pool of this .class file.- Angegeben von:
getConstantPoolin SchnittstelleIClassFileReader- Gibt zurück:
- the constant pool of this .class file
- Siehe auch:
-
getFieldInfos
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the array of field infos of the .class file, an empty array if none.- Angegeben von:
getFieldInfosin SchnittstelleIClassFileReader- Gibt zurück:
- the array of field infos of the .class file, an empty array if none
- Siehe auch:
-
getFieldsCount
public int getFieldsCount()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the number of field infos.- Angegeben von:
getFieldsCountin SchnittstelleIClassFileReader- Gibt zurück:
- the number of field infos
- Siehe auch:
-
getInnerClassesAttribute
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the inner classes attribute of this .class file, null if none.- Angegeben von:
getInnerClassesAttributein SchnittstelleIClassFileReader- Gibt zurück:
- the inner classes attribute of this .class file, null if none
- Siehe auch:
-
getNestMembersAttribute
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the nest members attribute of this .class file, null if none.- Angegeben von:
getNestMembersAttributein SchnittstelleIClassFileReader- Gibt zurück:
- the nest members attribute of this .class file, null if none
-
getPermittedSubclassesAttribute
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the permitted subclasses attribute of this .class file, null if none.- Angegeben von:
getPermittedSubclassesAttributein SchnittstelleIClassFileReader- Gibt zurück:
- the permitted subclasses attribute of this .class file, null if none
-
getInterfaceIndexes
public int[] getInterfaceIndexes()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the indexes in the constant pool of interfaces implemented by this .class file, an empty array if none.- Angegeben von:
getInterfaceIndexesin SchnittstelleIClassFileReader- Gibt zurück:
- the indexes in the constant pool of interfaces implemented by this .class file, an empty array if none
- Siehe auch:
-
getInterfaceNames
public char[][] getInterfaceNames()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the names of interfaces implemented by this .class file, an empty array if none. The names are returned as described in the JVM specifications.- Angegeben von:
getInterfaceNamesin SchnittstelleIClassFileReader- Gibt zurück:
- the names of interfaces implemented by this .class file, an empty array if none
- Siehe auch:
-
getMagic
public int getMagic()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the magic number.- Angegeben von:
getMagicin SchnittstelleIClassFileReader- Gibt zurück:
- the magic number
- Siehe auch:
-
getMajorVersion
public int getMajorVersion()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer the major version of this .class file.- Angegeben von:
getMajorVersionin SchnittstelleIClassFileReader- Gibt zurück:
- the major version of this .class file
- Siehe auch:
-
getMethodInfos
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the array of method infos of this .class file, an empty array if none.- Angegeben von:
getMethodInfosin SchnittstelleIClassFileReader- Gibt zurück:
- the array of method infos of this .class file, an empty array if none
- Siehe auch:
-
getMethodsCount
public int getMethodsCount()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the number of method infos.- Angegeben von:
getMethodsCountin SchnittstelleIClassFileReader- Gibt zurück:
- the number of method infos
- Siehe auch:
-
getMinorVersion
public int getMinorVersion()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer the minor version of this .class file.- Angegeben von:
getMinorVersionin SchnittstelleIClassFileReader- Gibt zurück:
- the minor version of this .class file
- Siehe auch:
-
getSourceFileAttribute
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer the source file attribute, if it exists, null otherwise.- Angegeben von:
getSourceFileAttributein SchnittstelleIClassFileReader- Gibt zurück:
- the source file attribute, if it exists, null otherwise
- Siehe auch:
-
getSuperclassIndex
public int getSuperclassIndex()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the index of the superclass name in the constant pool of the .class file. Answer 0 if this .class file represents java.lang.Object.- Angegeben von:
getSuperclassIndexin SchnittstelleIClassFileReader- Gibt zurück:
- the index of the superclass name in the constant pool of the .class file, 0 if this .class file represents java.lang.Object.
- Siehe auch:
-
getSuperclassName
public char[] getSuperclassName()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the qualified name of the superclass of this .class file. The name is returned as described in the JVM specifications. Answer null if getSuperclassIndex() is zero.- Angegeben von:
getSuperclassNamein SchnittstelleIClassFileReader- Gibt zurück:
- the qualified name of the superclass of this .class file, null if getSuperclassIndex() is zero
- Siehe auch:
-
isClass
public boolean isClass()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer true if this .class file represents a class, false otherwise.- Angegeben von:
isClassin SchnittstelleIClassFileReader- Gibt zurück:
- true if this .class file represents a class, false otherwise
- Siehe auch:
-
isInterface
public boolean isInterface()Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer true if this .class file represents an interface, false otherwise.- Angegeben von:
isInterfacein SchnittstelleIClassFileReader- Gibt zurück:
- true if this .class file represents an interface, false otherwise
- Siehe auch:
-
getRecordAttribute
Beschreibung aus Schnittstelle kopiert:IClassFileReaderAnswer back the record attribute of this .class file, null if none.- Angegeben von:
getRecordAttributein SchnittstelleIClassFileReader- Gibt zurück:
- the nest record of this .class file, null if none
-