Class MethodInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.MethodInfo
-
Constructor Summary
ConstructorsConstructorDescriptionMethodInfo(byte[] classFileBytes, IConstantPool constantPool, int offset, int decodingFlags) -
Method Summary
Modifier and TypeMethodDescriptionintAnswer 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.
-
Constructor Details
-
MethodInfo
public MethodInfo(byte[] classFileBytes, IConstantPool constantPool, int offset, int decodingFlags) throws ClassFormatException - Parameters:
classFileBytes- byte[]constantPool- IConstantPooloffset- intdecodingFlags- int- Throws:
ClassFormatException
-
-
Method Details
-
getAccessFlags
public int getAccessFlags()Description copied from interface:IMethodInfoAnswer back the access flags of this method info as specified in the JVM specifications.- Specified by:
getAccessFlagsin interfaceIMethodInfo- Returns:
- the access flags of this method info as specified in the JVM specifications
- See Also:
-
getAttributeCount
public int getAttributeCount()Description copied from interface: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.- Specified by:
getAttributeCountin interfaceIMethodInfo- Returns:
- the attribute number of the method info. It includes the CodeAttribute if any even if the decoding flags doesn't include METHOD_BODIES
- See Also:
-
getAttributes
Description copied from interface: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.- Specified by:
getAttributesin interfaceIMethodInfo- Returns:
- 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
- See Also:
-
getCodeAttribute
Description copied from interface:IMethodInfoAnswer the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES.- Specified by:
getCodeAttributein interfaceIMethodInfo- Returns:
- the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES
- See Also:
-
getDescriptor
public char[] getDescriptor()Description copied from interface:IMethodInfoAnswer back the method descriptor of this method info as specified in the JVM specifications.- Specified by:
getDescriptorin interfaceIMethodInfo- Returns:
- the method descriptor of this method info as specified in the JVM specifications
- See Also:
-
getDescriptorIndex
public int getDescriptorIndex()Description copied from interface:IMethodInfoAnswer back the descriptor index of this method info.- Specified by:
getDescriptorIndexin interfaceIMethodInfo- Returns:
- the descriptor index of this method info
- See Also:
-
getExceptionAttribute
Description copied from interface:IMethodInfoAnswer the exception attribute of this method info, null is none.- Specified by:
getExceptionAttributein interfaceIMethodInfo- Returns:
- the exception attribute of this method info, null is none
- See Also:
-
getName
public char[] getName()Description copied from interface:IMethodInfoAnswer back the name of this method info as specified in the JVM specifications.- Specified by:
getNamein interfaceIMethodInfo- Returns:
- the name of this method info as specified in the JVM specifications
- See Also:
-
getNameIndex
public int getNameIndex()Description copied from interface:IMethodInfoAnswer back the name index of this method info.- Specified by:
getNameIndexin interfaceIMethodInfo- Returns:
- the name index of this method info
- See Also:
-
isClinit
public boolean isClinit()Description copied from interface:IMethodInfoAnswer true if this method info represents a <clinit> method, false otherwise.- Specified by:
isClinitin interfaceIMethodInfo- Returns:
- true if this method info represents a <clinit> method, false otherwise
- See Also:
-
isConstructor
public boolean isConstructor()Description copied from interface:IMethodInfoAnswer true if this method info represents a constructor, false otherwise.- Specified by:
isConstructorin interfaceIMethodInfo- Returns:
- true if this method info represents a constructor, false otherwise
- See Also:
-
isDeprecated
public boolean isDeprecated()Description copied from interface:IMethodInfoAnswer true if this method info has a deprecated attribute, false otherwise.- Specified by:
isDeprecatedin interfaceIMethodInfo- Returns:
- true if this method info has a deprecated attribute, false otherwise
- See Also:
-
isSynthetic
public boolean isSynthetic()Description copied from interface: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.- Specified by:
isSyntheticin interfaceIMethodInfo- Returns:
- true if the method info is synthetic according to the JVM specification, false otherwise
- See Also:
-