|
|||||||||
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)
Deprecated. |
|
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. |
|
abstract java.lang.String |
getJsniSignature()
Returns a string contating a JSNI reference to the method. |
|
java.lang.String[][] |
getMetaData(java.lang.String tagName)
Deprecated. |
|
java.lang.String[] |
getMetaDataTags()
Deprecated. |
|
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 |
---|
@Deprecated public final void addMetaData(java.lang.String tagName, java.lang.String[] values)
HasMetaData
addMetaData
in interface HasMetaData
public 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)
HasAnnotations
null
if it is not.
getAnnotation
in interface HasAnnotations
annotationClass
- annotation type to search for
null
if it is notpublic abstract JClassType getEnclosingType()
public abstract java.lang.String getJsniSignature()
@package.Class::method(Lpackage/Param;...)
@Deprecated public final java.lang.String[][] getMetaData(java.lang.String tagName)
HasMetaData
getMetaData
in interface HasMetaData
@Deprecated public final java.lang.String[] getMetaDataTags()
HasMetaData
getMetaDataTags
in interface HasMetaData
public java.lang.String getName()
public JParameter[] getParameters()
public abstract java.lang.String getReadableDeclaration()
public JType[] getThrows()
public JTypeParameter[] getTypeParameters()
HasTypeParameters
getTypeParameters
in interface HasTypeParameters
public JAnnotationMethod isAnnotationMethod()
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
HasAnnotations
true
if this item has an annotation of the specified
type.
isAnnotationPresent
in interface HasAnnotations
true
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 |