public final class Method extends Field
Modifier and Type | Method and Description |
---|---|
ElementValue |
getAnnotationDefault()
Returns the default annotation value for the element
defined by this method.
|
Code |
getCode()
Get the bytecodes of this method.
|
String |
getDeclaration() |
CPClassInfo[] |
getExceptionClasses() |
List<Parameter> |
getParameters()
Returns the parameters for this method as a declaration-ordered list.
|
String |
getReturnSignature()
Returns the method's return type as it would be defined in Java
source code format.
|
String |
getReturnType()
Returns the method's return type in the type format defined by
the JVM Specification for Field Descriptors (section 4.3.2).
|
boolean |
isAbstract()
Returns true if this method is declared abstract.
|
boolean |
isBridge()
Returns true if this method is a generics bridge method defined
by the compiler.
|
boolean |
isNative()
Returns true if this method is declared native.
|
boolean |
isSynchronized()
Returns true if this method is declared synchronized.
|
boolean |
isVarArgs()
Returns true if this method is declared with a variable number
of arguments.
|
String |
toString() |
getAccess, getAnnotation, getAnnotations, getAttributes, getClassFile, getDescriptor, getName, getTypeSignature, isAnnotationPresent, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSynthetic
public final Code getCode()
public final CPClassInfo[] getExceptionClasses()
public final boolean isBridge()
public final boolean isVarArgs()
public final boolean isSynchronized()
public final boolean isNative()
public final boolean isAbstract()
public final List<Parameter> getParameters()
public final String getReturnType()
public final String getReturnSignature()
public ElementValue getAnnotationDefault()
public final String getDeclaration()
getDeclaration
in class Field