public class JMethod extends JAbstractMethod implements JMethod
Modifier and Type | Method and Description |
---|---|
JClassType |
getEnclosingType()
Gets the type in which this method or constructor was declared.
|
String |
getJsniSignature()
Returns a string contating a JSNI reference to the method.
|
String |
getReadableDeclaration() |
String |
getReadableDeclaration(boolean noAccess,
boolean noNative,
boolean noStatic,
boolean noFinal,
boolean noAbstract)
Returns a
String representing the source code declaration
of this method, containing access modifiers, type parameters,
return type, method name, parameter list, and throws. |
JType |
getReturnType() |
boolean |
isAbstract() |
JConstructor |
isConstructor() |
boolean |
isFinal() |
JMethod |
isMethod() |
boolean |
isNative() |
boolean |
isStatic() |
String |
toString() |
findParameter, getAnnotation, getAnnotations, getDeclaredAnnotations, getErasedParameterTypes, getMetaData, getMetaDataTags, getModifierBits, getName, getParameters, getParameterTypes, getThrows, getTypeParameters, isAnnotationMethod, isAnnotationPresent, isDefaultAccess, isPrivate, isProtected, isPublic, isVarArgs, toStringParamsAndThrows, toStringTypeParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findParameter, getErasedParameterTypes, getName, getParameters, getParameterTypes, getThrows, isAnnotationMethod, isDefaultAccess, isPrivate, isProtected, isPublic, isVarArgs
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
getMetaData, getMetaDataTags
getTypeParameters
public JClassType getEnclosingType()
JAbstractMethod
getEnclosingType
in interface JAbstractMethod
getEnclosingType
in class JAbstractMethod
public String getJsniSignature()
JAbstractMethod
getJsniSignature
in interface JAbstractMethod
getJsniSignature
in class JAbstractMethod
@package.Class::method(Lpackage/Param;...)
public String getReadableDeclaration()
getReadableDeclaration
in interface JAbstractMethod
getReadableDeclaration
in class JAbstractMethod
public String getReadableDeclaration(boolean noAccess, boolean noNative, boolean noStatic, boolean noFinal, boolean noAbstract)
JMethod
String
representing the source code declaration
of this method, containing access modifiers, type parameters,
return type, method name, parameter list, and throws.
Doesn't include the method body or trailing semicolon.getReadableDeclaration
in interface JMethod
noAccess
- if true, print no access modifiersnoNative
- if true, don't print the native modifiernoStatic
- if true, don't print the static modifiernoFinal
- if true, don't print the final modifiernoAbstract
- if true, don't print the abstract modifierpublic JType getReturnType()
getReturnType
in interface JMethod
public boolean isAbstract()
isAbstract
in interface JMethod
public JConstructor isConstructor()
isConstructor
in interface JAbstractMethod
isConstructor
in class JAbstractMethod
public JMethod isMethod()
isMethod
in interface JAbstractMethod
isMethod
in class JAbstractMethod
Copyright © 2016. All rights reserved.