public class MethodInfo extends ClassFileStruct implements IMethodInfo
| Constructor and Description |
|---|
MethodInfo(byte[] classFileBytes,
IConstantPool constantPool,
int offset,
int decodingFlags) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Answer back the access flags of this method info as specified
in the JVM specifications.
|
int |
getAttributeCount()
Answer back the attribute number of the method info.
|
IClassFileAttribute[] |
getAttributes()
Answer back the collection of all attributes of the method info.
|
ICodeAttribute |
getCodeAttribute()
Answer the code attribute of this method info, null if none or if the decoding
flag doesn't include METHOD_BODIES.
|
char[] |
getDescriptor()
Answer back the method descriptor of this method info as specified
in the JVM specifications.
|
int |
getDescriptorIndex()
Answer back the descriptor index of this method info.
|
IExceptionAttribute |
getExceptionAttribute()
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 |
getNameIndex()
Answer back the name index of this method info.
|
boolean |
isClinit()
Answer true if this method info represents a <clinit> method,
false otherwise.
|
boolean |
isConstructor()
Answer true if this method info represents a constructor,
false otherwise.
|
boolean |
isDeprecated()
Answer true if this method info has a deprecated attribute,
false otherwise.
|
boolean |
isSynthetic()
Return true if the method info is synthetic according to the JVM specification, false otherwise.
|
public MethodInfo(byte[] classFileBytes,
IConstantPool constantPool,
int offset,
int decodingFlags)
throws ClassFormatException
classFileBytes - byte[]constantPool - IConstantPooloffset - intdecodingFlags - intClassFormatExceptionpublic int getAccessFlags()
IMethodInfogetAccessFlags in interface IMethodInfoIMethodInfo.getAccessFlags()public int getAttributeCount()
IMethodInfogetAttributeCount in interface IMethodInfoIMethodInfo.getAttributeCount()public IClassFileAttribute[] getAttributes()
IMethodInfogetAttributes in interface IMethodInfoIMethodInfo.getAttributes()public ICodeAttribute getCodeAttribute()
IMethodInfogetCodeAttribute in interface IMethodInfoIMethodInfo.getCodeAttribute()public char[] getDescriptor()
IMethodInfogetDescriptor in interface IMethodInfoIMethodInfo.getDescriptor()public int getDescriptorIndex()
IMethodInfogetDescriptorIndex in interface IMethodInfoIMethodInfo.getDescriptorIndex()public IExceptionAttribute getExceptionAttribute()
IMethodInfogetExceptionAttribute in interface IMethodInfoIMethodInfo.getExceptionAttribute()public char[] getName()
IMethodInfogetName in interface IMethodInfoIMethodInfo.getName()public int getNameIndex()
IMethodInfogetNameIndex in interface IMethodInfoIMethodInfo.getNameIndex()public boolean isClinit()
IMethodInfoisClinit in interface IMethodInfoIMethodInfo.isClinit()public boolean isConstructor()
IMethodInfoisConstructor in interface IMethodInfoIMethodInfo.isConstructor()public boolean isDeprecated()
IMethodInfoisDeprecated in interface IMethodInfoIMethodInfo.isDeprecated()public boolean isSynthetic()
IMethodInfoNote 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.
isSynthetic in interface IMethodInfoIMethodInfo.isSynthetic()