Klasse MethodInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.MethodInfo
- Alle implementierten Schnittstellen:
IMethodInfo
Default implementation of IMethodInfo.
-
Konstruktorübersicht
KonstruktorBeschreibungMethodInfo
(byte[] classFileBytes, IConstantPool constantPool, int offset, int decodingFlags) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Answer back the access flags of this method info as specified in the JVM specifications.int
Answer back the attribute number of the method info.Answer back the collection of all attributes of the method info.Answer the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES.char[]
Answer back the method descriptor of this method info as specified in the JVM specifications.int
Answer back the descriptor index of this method info.Answer the exception attribute of this method info, null is none.char[]
getName()
Answer back the name of this method info as specified in the JVM specifications.int
Answer back the name index of this method info.boolean
isClinit()
Answer true if this method info represents a <clinit> method, false otherwise.boolean
Answer true if this method info represents a constructor, false otherwise.boolean
Answer true if this method info has a deprecated attribute, false otherwise.boolean
Return true if the method info is synthetic according to the JVM specification, false otherwise.
-
Konstruktordetails
-
MethodInfo
public MethodInfo(byte[] classFileBytes, IConstantPool constantPool, int offset, int decodingFlags) throws ClassFormatException - Parameter:
classFileBytes
- byte[]constantPool
- IConstantPooloffset
- intdecodingFlags
- int- Löst aus:
ClassFormatException
-
-
Methodendetails
-
getAccessFlags
public int getAccessFlags()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the access flags of this method info as specified in the JVM specifications.- Angegeben von:
getAccessFlags
in SchnittstelleIMethodInfo
- Gibt zurück:
- the access flags of this method info as specified in the JVM specifications
- Siehe auch:
-
getAttributeCount
public int getAttributeCount()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the attribute number of the method info. It includes the CodeAttribute if any even if the decoding flags doesn't include METHOD_BODIES.- Angegeben von:
getAttributeCount
in SchnittstelleIMethodInfo
- Gibt zurück:
- the attribute number of the method info. It includes the CodeAttribute if any even if the decoding flags doesn't include METHOD_BODIES
- Siehe auch:
-
getAttributes
Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the collection of all attributes of the method info. It includes SyntheticAttribute, CodeAttributes, etc. It doesn't include the CodeAttribute if the decoding flags doesn't include METHOD_BODIES. Returns an empty collection if none.- Angegeben von:
getAttributes
in SchnittstelleIMethodInfo
- Gibt zurück:
- the collection of all attributes of the method info. It includes SyntheticAttribute, CodeAttributes, etc. It doesn't include the CodeAttribute if the decoding flags doesn't include METHOD_BODIES. Returns an empty collection if none
- Siehe auch:
-
getCodeAttribute
Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES.- Angegeben von:
getCodeAttribute
in SchnittstelleIMethodInfo
- Gibt zurück:
- the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES
- Siehe auch:
-
getDescriptor
public char[] getDescriptor()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the method descriptor of this method info as specified in the JVM specifications.- Angegeben von:
getDescriptor
in SchnittstelleIMethodInfo
- Gibt zurück:
- the method descriptor of this method info as specified in the JVM specifications
- Siehe auch:
-
getDescriptorIndex
public int getDescriptorIndex()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the descriptor index of this method info.- Angegeben von:
getDescriptorIndex
in SchnittstelleIMethodInfo
- Gibt zurück:
- the descriptor index of this method info
- Siehe auch:
-
getExceptionAttribute
Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer the exception attribute of this method info, null is none.- Angegeben von:
getExceptionAttribute
in SchnittstelleIMethodInfo
- Gibt zurück:
- the exception attribute of this method info, null is none
- Siehe auch:
-
getName
public char[] getName()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the name of this method info as specified in the JVM specifications.- Angegeben von:
getName
in SchnittstelleIMethodInfo
- Gibt zurück:
- the name of this method info as specified in the JVM specifications
- Siehe auch:
-
getNameIndex
public int getNameIndex()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer back the name index of this method info.- Angegeben von:
getNameIndex
in SchnittstelleIMethodInfo
- Gibt zurück:
- the name index of this method info
- Siehe auch:
-
isClinit
public boolean isClinit()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer true if this method info represents a <clinit> method, false otherwise.- Angegeben von:
isClinit
in SchnittstelleIMethodInfo
- Gibt zurück:
- true if this method info represents a <clinit> method, false otherwise
- Siehe auch:
-
isConstructor
public boolean isConstructor()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer true if this method info represents a constructor, false otherwise.- Angegeben von:
isConstructor
in SchnittstelleIMethodInfo
- Gibt zurück:
- true if this method info represents a constructor, false otherwise
- Siehe auch:
-
isDeprecated
public boolean isDeprecated()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Answer true if this method info has a deprecated attribute, false otherwise.- Angegeben von:
isDeprecated
in SchnittstelleIMethodInfo
- Gibt zurück:
- true if this method info has a deprecated attribute, false otherwise
- Siehe auch:
-
isSynthetic
public boolean isSynthetic()Beschreibung aus Schnittstelle kopiert:IMethodInfo
Return true if the method info is synthetic according to the JVM specification, false otherwise.Note that prior to JDK 1.5, synthetic fields were always marked using an attribute; with 1.5, synthetic fields can also be marked using the
IModifierConstants.ACC_SYNTHETIC
flag.- Angegeben von:
isSynthetic
in SchnittstelleIMethodInfo
- Gibt zurück:
- true if the method info is synthetic according to the JVM specification, false otherwise
- Siehe auch:
-