Package com.google.gwt.core.ext.typeinfo
Interface JMethod
- All Superinterfaces:
HasAnnotations,HasTypeParameters,JAbstractMethod
- All Known Subinterfaces:
JAnnotationMethod
Represents a method declaration.
-
Method Summary
Modifier and TypeMethodDescriptiongetReadableDeclaration(boolean noAccess, boolean noNative, boolean noStatic, boolean noFinal, boolean noAbstract) Returns aStringrepresenting the source code declaration of this method, containing access modifiers, type parameters, return type, method name, parameter list, and throws.booleanbooleanisFinal()booleanisNative()booleanisStatic()Methods inherited from interface com.google.gwt.core.ext.typeinfo.HasAnnotations
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresentMethods inherited from interface com.google.gwt.core.ext.typeinfo.HasTypeParameters
getTypeParametersMethods inherited from interface com.google.gwt.core.ext.typeinfo.JAbstractMethod
findParameter, getEnclosingType, getErasedParameterTypes, getJsniSignature, getName, getParameters, getParameterTypes, getReadableDeclaration, getThrows, isAnnotationMethod, isConstructor, isDefaultAccess, isMethod, isPrivate, isProtected, isPublic, isVarArgs
-
Method Details
-
getReadableDeclaration
String getReadableDeclaration(boolean noAccess, boolean noNative, boolean noStatic, boolean noFinal, boolean noAbstract) Returns aStringrepresenting 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.- Parameters:
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 modifier
-
getReturnType
JType getReturnType() -
isAbstract
boolean isAbstract() -
isFinal
boolean isFinal() -
isNative
boolean isNative() -
isStatic
boolean isStatic()
-