Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Get the access flags of the method.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAnnotation(java.lang.String annotation)
Get a single annotation or null
|
Attributes |
getAttributes() |
java.lang.String |
getClassName()
The class name of the declaring class.
|
Code |
getCode() |
ConstantPool |
getConstantPool()
Get the constant pool of the the current class.
|
ClassFile |
getDeclaringClassFile()
Get the declaring class file of the method
|
Exceptions |
getExceptions() |
java.lang.String |
getName()
The simple name without package
|
java.lang.String |
getSignature()
Get the signature of the method with generic types.
|
java.lang.String |
getType()
Get the signature of the method without generic types.
|
boolean |
isStatic()
If the method is a static method.
|
public ClassFile getDeclaringClassFile()
public int getAccessFlags()
public boolean isStatic()
getAccessFlags()
public java.lang.String getName()
Member
public java.lang.String getClassName()
getClassName
in interface Member
public Attributes getAttributes()
public Code getCode() throws java.io.IOException
java.io.IOException
public java.lang.String getType()
public java.lang.String getSignature() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic Exceptions getExceptions() throws java.io.IOException
java.io.IOException
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getAnnotation(java.lang.String annotation) throws java.io.IOException
annotation
- the class name of the annotationjava.io.IOException
- if any I/O error occurpublic ConstantPool getConstantPool()