public class JiapiMethod extends Object
Constructor and Description |
---|
JiapiMethod(Method m)
Constructor for JiapiMethod.
|
Modifier and Type | Method and Description |
---|---|
JiapiAnnotation[] |
getDeclaredAnnotations()
Get all the declared annotations of this method.
|
JiapiClass |
getDeclaringClass()
Gets the class that declared this JiapiMethod.
|
String[] |
getExceptionNames()
Gets the names of exceptions this method can throw.
|
JiapiClass[] |
getExceptionTypes()
Gets the parameter types of exceptions this method can throw.
|
InstructionFactory |
getInstructionFactory()
Get the InstructionFactory.
|
InstructionList |
getInstructionList()
Get an InstructionList, that represents a byte-code of this method.
|
List<ParameterAnnotations>[] |
getInvisibleParameterAnnotations()
Get all the invisible parameter annotations of this method.
|
int |
getMaxLocals() |
int |
getMaxStack() |
Method |
getMethod()
Gets the underlying net.sf.jiapi.file.Method
|
int |
getModifiers()
Gets modifiers of this Method.
|
String |
getName()
Get the name of this Method.
|
String[] |
getParameterTypeNames()
Gets the names of parameter types in this method's signature.
|
JiapiClass[] |
getParameterTypes()
Gets the parameter types in this method's signature.
|
String |
getReturnType()
Gets the return type of a method.
|
Signature |
getSignature()
Gets the signature of this method.
|
List<ParameterAnnotations>[] |
getVisibleParameterAnnotations()
Get all the visible parameter annotations of this method.
|
boolean |
isSynthetic()
Checks, whether or not this JiapiMethod is synthetic.
|
String |
toString()
Convert this JiapiMethod to String.
|
public JiapiMethod(Method m)
m
- an Instance of net.sf.jiapi.file.Methodpublic String getName()
public int getModifiers()
Modifier
public String getReturnType()
public Signature getSignature()
public InstructionFactory getInstructionFactory()
public InstructionList getInstructionList()
public JiapiClass getDeclaringClass()
public JiapiClass[] getParameterTypes() throws ClassNotFoundException
ClassNotFoundException
- is thrown, if one of the types could not be loadedgetParameterTypeNames()
public String[] getParameterTypeNames()
public JiapiClass[] getExceptionTypes() throws ClassNotFoundException
ClassNotFoundException
- is thrown, if one of the types could not be loadedgetExceptionNames()
public String[] getExceptionNames()
public String toString()
public Method getMethod()
public int getMaxLocals()
public int getMaxStack()
public JiapiAnnotation[] getDeclaredAnnotations()
public List<ParameterAnnotations>[] getVisibleParameterAnnotations()
public List<ParameterAnnotations>[] getInvisibleParameterAnnotations()
public boolean isSynthetic()
Copyright © 2017. All rights reserved.