|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.ext.typeinfo.JAbstractMethod
public abstract class JAbstractMethod
Common superclass for JMethod and JConstructor.
| Method Summary | ||
|---|---|---|
void |
addMetaData(java.lang.String tagName,
java.lang.String[] values)
Adds additional metadata. |
|
void |
addModifierBits(int bits)
|
|
void |
addThrows(JType type)
|
|
JParameter |
findParameter(java.lang.String name)
|
|
|
getAnnotation(java.lang.Class<T> annotationClass)
Returns an instance of the specified annotation type if it is present on this element or null if it is not. |
|
abstract JClassType |
getEnclosingType()
Gets the type in which this method or constructor was declared. |
|
java.lang.String[][] |
getMetaData(java.lang.String tagName)
Gets each list of metadata for the specified tag name. |
|
java.lang.String[] |
getMetaDataTags()
Gets the name of available metadata tags. |
|
protected int |
getModifierBits()
|
|
java.lang.String |
getName()
|
|
JParameter[] |
getParameters()
|
|
abstract java.lang.String |
getReadableDeclaration()
|
|
JType[] |
getThrows()
|
|
JTypeParameter[] |
getTypeParameters()
Returns the type parameters on this element. |
|
JAnnotationMethod |
isAnnotationMethod()
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns true if this item has an annotation of the specified
type. |
|
abstract JConstructor |
isConstructor()
|
|
boolean |
isDefaultAccess()
|
|
abstract JMethod |
isMethod()
|
|
boolean |
isPrivate()
|
|
boolean |
isProtected()
|
|
boolean |
isPublic()
|
|
boolean |
isVarArgs()
|
|
void |
setVarArgs()
|
|
protected void |
toStringParamsAndThrows(java.lang.StringBuilder sb)
|
|
protected void |
toStringTypeParams(java.lang.StringBuilder sb)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addMetaData(java.lang.String tagName,
java.lang.String[] values)
HasMetaData
addMetaData in interface HasMetaDatapublic void addModifierBits(int bits)
public void addThrows(JType type)
public JParameter findParameter(java.lang.String name)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
HasAnnotationsnull if it is not.
getAnnotation in interface HasAnnotationsannotationClass - annotation type to search for
null if it is notpublic abstract JClassType getEnclosingType()
public java.lang.String[][] getMetaData(java.lang.String tagName)
HasMetaData
getMetaData in interface HasMetaDatapublic java.lang.String[] getMetaDataTags()
HasMetaData
getMetaDataTags in interface HasMetaDatapublic java.lang.String getName()
public JParameter[] getParameters()
public abstract java.lang.String getReadableDeclaration()
public JType[] getThrows()
public JTypeParameter[] getTypeParameters()
HasTypeParameters
getTypeParameters in interface HasTypeParameterspublic JAnnotationMethod isAnnotationMethod()
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
HasAnnotationstrue if this item has an annotation of the specified
type.
isAnnotationPresent in interface HasAnnotationstrue if this item has an annotation of the specified
typepublic abstract JConstructor isConstructor()
public boolean isDefaultAccess()
public abstract JMethod isMethod()
public boolean isPrivate()
public boolean isProtected()
public boolean isPublic()
public boolean isVarArgs()
public void setVarArgs()
protected int getModifierBits()
protected void toStringParamsAndThrows(java.lang.StringBuilder sb)
protected void toStringTypeParams(java.lang.StringBuilder sb)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||