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
KonstruktorenKonstruktorBeschreibungMethodInfo(byte[] classFileBytes, IConstantPool constantPool, int offset, int decodingFlags) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintAnswer back the access flags of this method info as specified in the JVM specifications.intAnswer 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.intAnswer 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.intAnswer back the name index of this method info.booleanisClinit()Answer true if this method info represents a <clinit> method, false otherwise.booleanAnswer true if this method info represents a constructor, false otherwise.booleanAnswer true if this method info has a deprecated attribute, false otherwise.booleanReturn 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:IMethodInfoAnswer back the access flags of this method info as specified in the JVM specifications.- Angegeben von:
getAccessFlagsin 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:IMethodInfoAnswer 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:
getAttributeCountin 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:IMethodInfoAnswer 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:
getAttributesin 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:IMethodInfoAnswer the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES.- Angegeben von:
getCodeAttributein 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:IMethodInfoAnswer back the method descriptor of this method info as specified in the JVM specifications.- Angegeben von:
getDescriptorin 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:IMethodInfoAnswer back the descriptor index of this method info.- Angegeben von:
getDescriptorIndexin SchnittstelleIMethodInfo- Gibt zurück:
- the descriptor index of this method info
- Siehe auch:
-
getExceptionAttribute
Beschreibung aus Schnittstelle kopiert:IMethodInfoAnswer the exception attribute of this method info, null is none.- Angegeben von:
getExceptionAttributein SchnittstelleIMethodInfo- Gibt zurück:
- the exception attribute of this method info, null is none
- Siehe auch:
-
getName
public char[] getName()Beschreibung aus Schnittstelle kopiert:IMethodInfoAnswer back the name of this method info as specified in the JVM specifications.- Angegeben von:
getNamein 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:IMethodInfoAnswer back the name index of this method info.- Angegeben von:
getNameIndexin SchnittstelleIMethodInfo- Gibt zurück:
- the name index of this method info
- Siehe auch:
-
isClinit
public boolean isClinit()Beschreibung aus Schnittstelle kopiert:IMethodInfoAnswer true if this method info represents a <clinit> method, false otherwise.- Angegeben von:
isClinitin 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:IMethodInfoAnswer true if this method info represents a constructor, false otherwise.- Angegeben von:
isConstructorin SchnittstelleIMethodInfo- Gibt zurück:
- true if this method info represents a constructor, false otherwise
- Siehe auch:
-
isDeprecated
public boolean isDeprecated()Beschreibung aus Schnittstelle kopiert:IMethodInfoAnswer true if this method info has a deprecated attribute, false otherwise.- Angegeben von:
isDeprecatedin 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:IMethodInfoReturn 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_SYNTHETICflag.- Angegeben von:
isSyntheticin SchnittstelleIMethodInfo- Gibt zurück:
- true if the method info is synthetic according to the JVM specification, false otherwise
- Siehe auch:
-