public class MethodInfo
extends java.lang.Object
Constructor and Description |
---|
MethodInfo(ClassInfo parent,
byte[] info)
Loads information about a method from the given byte array.
|
Modifier and Type | Method and Description |
---|---|
AccessFlag |
getAccess()
Gets the access modifiers of this method.
|
AttributeStructure[] |
getAttributes()
Gets the
AttributeStructure s associated with this MethodInfo instance. |
java.lang.String |
getDescriptor()
Gets the descriptor associated with this
MethodInfo instance. |
java.lang.String |
getName()
Gets the name associated with this
MethodInfo instance. |
TypeDescriptor[] |
getParams()
Gets the type parameters associated with this
MethodInfo instance. |
ClassInfo |
getParent()
Gets the parent
ClassInfo instance. |
TypeDescriptor |
getReturnType()
Gets the return type associated with this
MethodInfo instance. |
public MethodInfo(ClassInfo parent, byte[] info) throws java.lang.IllegalArgumentException
parent
- The parent ClassInfo
instanceinfo
- The byte array non-exclusively containing this method's info, with index 0 containing the first
bytejava.lang.IllegalArgumentException
- If structure
contains invalid datapublic ClassInfo getParent()
ClassInfo
instance.ClassInfo
instancepublic AccessFlag getAccess()
public java.lang.String getName()
MethodInfo
instance.MethodInfo
instancepublic java.lang.String getDescriptor()
MethodInfo
instance.MethodInfo
instancepublic TypeDescriptor[] getParams()
MethodInfo
instance.MethodInfo
instancepublic TypeDescriptor getReturnType()
MethodInfo
instance.MethodInfo
instancepublic AttributeStructure[] getAttributes()
AttributeStructure
s associated with this MethodInfo
instance.AttributeStructure
s associated with this MethodInfo
instance.