com.google.gwt.core.ext.typeinfo
Class JMethod
java.lang.Object
com.google.gwt.core.ext.typeinfo.JAbstractMethod
com.google.gwt.core.ext.typeinfo.JMethod
- All Implemented Interfaces:
- HasMetaData
- public class JMethod
- extends JAbstractMethod
Represents a method declaration.
Constructor Summary |
JMethod(JClassType enclosingType,
java.lang.String name,
int declStart,
int declEnd,
int bodyStart,
int bodyEnd)
|
Methods inherited from class com.google.gwt.core.ext.typeinfo.JAbstractMethod |
addMetaData, addModifierBits, addThrows, findParameter, getBodyEnd, getBodyStart, getDeclEnd, getDeclStart, getMetaData, getMetaDataTags, getModifierBits, getName, getParameters, getThrows, isDefaultAccess, isPrivate, isProtected, isPublic, toStringParamsAndThrows |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JMethod
public JMethod(JClassType enclosingType,
java.lang.String name,
int declStart,
int declEnd,
int bodyStart,
int bodyEnd)
getEnclosingType
public JClassType getEnclosingType()
- Description copied from class:
JAbstractMethod
- Gets the type in which this method or constructor was declared.
- Specified by:
getEnclosingType
in class JAbstractMethod
getReadableDeclaration
public java.lang.String getReadableDeclaration()
- Specified by:
getReadableDeclaration
in class JAbstractMethod
getReadableDeclaration
public java.lang.String getReadableDeclaration(boolean noAccess,
boolean noNative,
boolean noStatic,
boolean noFinal,
boolean noAbstract)
getReturnType
public JType getReturnType()
isAbstract
public boolean isAbstract()
isConstructor
public JConstructor isConstructor()
- Specified by:
isConstructor
in class JAbstractMethod
isFinal
public boolean isFinal()
isMethod
public JMethod isMethod()
- Specified by:
isMethod
in class JAbstractMethod
isNative
public boolean isNative()
isStatic
public boolean isStatic()
setReturnType
public void setReturnType(JType type)
toString
public java.lang.String toString()