|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.ext.typeinfo.JField
public class JField
Represents a field declaration.
| Constructor Summary | |
|---|---|
JField(JClassType enclosingType,
java.lang.String name)
|
|
JField(JClassType enclosingType,
java.lang.String name,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations)
|
|
| Method Summary | ||
|---|---|---|
void |
addMetaData(java.lang.String tagName,
java.lang.String[] values)
Adds additional metadata. |
|
void |
addModifierBits(int modifierBits)
|
|
|
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. |
|
JClassType |
getEnclosingType()
|
|
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. |
|
java.lang.String |
getName()
|
|
JType |
getType()
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns true if this item has an annotation of the specified
type. |
|
boolean |
isDefaultAccess()
|
|
JEnumConstant |
isEnumConstant()
|
|
boolean |
isFinal()
|
|
boolean |
isPrivate()
|
|
boolean |
isProtected()
|
|
boolean |
isPublic()
|
|
boolean |
isStatic()
|
|
boolean |
isTransient()
|
|
boolean |
isVolatile()
|
|
void |
setType(JType type)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JField(JClassType enclosingType,
java.lang.String name)
public JField(JClassType enclosingType,
java.lang.String name,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations)
| Method Detail |
|---|
public void addMetaData(java.lang.String tagName,
java.lang.String[] values)
HasMetaData
addMetaData in interface HasMetaDatapublic void addModifierBits(int modifierBits)
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 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 JType getType()
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 boolean isDefaultAccess()
public JEnumConstant isEnumConstant()
public boolean isFinal()
public boolean isPrivate()
public boolean isProtected()
public boolean isPublic()
public boolean isStatic()
public boolean isTransient()
public boolean isVolatile()
public void setType(JType type)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||