GWT 2.1.1

com.google.gwt.core.ext.typeinfo
Class JField

java.lang.Object
  extended by com.google.gwt.core.ext.typeinfo.JField
All Implemented Interfaces:
HasAnnotations, HasMetaData
Direct Known Subclasses:
JEnumConstant

public class JField
extends java.lang.Object
implements HasAnnotations, HasMetaData

Represents a field declaration.


Method Summary
<T extends java.lang.annotation.Annotation>
T
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)
          Deprecated. 
 java.lang.String[] getMetaDataTags()
          Deprecated. 
 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()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
Description copied from interface: HasAnnotations
Returns an instance of the specified annotation type if it is present on this element or null if it is not.

Specified by:
getAnnotation in interface HasAnnotations
Parameters:
annotationClass - annotation type to search for
Returns:
instance of the specified annotation type if it is present on this element or null if it is not

getEnclosingType

public JClassType getEnclosingType()

getMetaData

@Deprecated
public final java.lang.String[][] getMetaData(java.lang.String tagName)
Deprecated. 

Description copied from interface: HasMetaData
Gets each list of metadata for the specified tag name.

Specified by:
getMetaData in interface HasMetaData

getMetaDataTags

@Deprecated
public final java.lang.String[] getMetaDataTags()
Deprecated. 

Description copied from interface: HasMetaData
Gets the name of available metadata tags.

Specified by:
getMetaDataTags in interface HasMetaData

getName

public java.lang.String getName()

getType

public JType getType()

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Description copied from interface: HasAnnotations
Returns true if this item has an annotation of the specified type.

Specified by:
isAnnotationPresent in interface HasAnnotations
Returns:
true if this item has an annotation of the specified type

isDefaultAccess

public boolean isDefaultAccess()

isEnumConstant

public JEnumConstant isEnumConstant()

isFinal

public boolean isFinal()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isPublic

public boolean isPublic()

isStatic

public boolean isStatic()

isTransient

public boolean isTransient()

isVolatile

public boolean isVolatile()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

GWT 2.1.1