Class JavaSourceField
- java.lang.Object
-
- gw.lang.reflect.java.JavaSourceElement
-
- gw.internal.gosu.parser.java.classinfo.JavaSourceField
-
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassField,Serializable
- Direct Known Subclasses:
JavaSourceEnumConstant
public class JavaSourceField extends JavaSourceElement implements IJavaClassField
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JavaSourceType_containingClassprotected VariableTree_fieldTreeprotected IJavaClassType_genericTypeprotected IModifierList_modifierListprotected IJavaClassInfo_type
-
Constructor Summary
Constructors Constructor Description JavaSourceField(VariableTree fieldTree, JavaSourceType containingClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JavaSourceFieldcreate(VariableTree fieldTree, JavaSourceType containingType)IAnnotationInfogetAnnotation(Class annotationClass)IAnnotationInfo[]getDeclaredAnnotations()JavaSourceTypegetEnclosingClass()IJavaClassTypegetGenericType()IModifierListgetModifierList()intgetModifiers()StringgetName()StringgetRhs()TreegetTree()IJavaClassInfogetType()booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)booleanisEnumConstant()static booleanisEnumInit(VariableTree tree)booleanisSynthetic()StringtoString()-
Methods inherited from class gw.lang.reflect.java.JavaSourceElement
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPosition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
-
-
-
Field Detail
-
_fieldTree
protected VariableTree _fieldTree
-
_containingClass
protected JavaSourceType _containingClass
-
_modifierList
protected IModifierList _modifierList
-
_type
protected IJavaClassInfo _type
-
_genericType
protected IJavaClassType _genericType
-
-
Constructor Detail
-
JavaSourceField
public JavaSourceField(VariableTree fieldTree, JavaSourceType containingClass)
-
-
Method Detail
-
create
public static JavaSourceField create(VariableTree fieldTree, JavaSourceType containingType)
-
isEnumInit
public static boolean isEnumInit(VariableTree tree)
-
getName
public String getName()
- Specified by:
getNamein interfaceIJavaClassField
-
getRhs
public String getRhs()
-
getType
public IJavaClassInfo getType()
- Specified by:
getTypein interfaceIJavaClassField
-
getGenericType
public IJavaClassType getGenericType()
- Specified by:
getGenericTypein interfaceIJavaClassField
-
isEnumConstant
public boolean isEnumConstant()
- Specified by:
isEnumConstantin interfaceIJavaClassField
-
getModifierList
public IModifierList getModifierList()
-
getEnclosingClass
public JavaSourceType getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement- Specified by:
getEnclosingClassin classJavaSourceElement
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceIJavaClassField
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIJavaClassField
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfaceIJavaAnnotatedElement
-
getAnnotation
public IAnnotationInfo getAnnotation(Class annotationClass)
- Specified by:
getAnnotationin interfaceIJavaAnnotatedElement
-
getDeclaredAnnotations
public IAnnotationInfo[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement
-
getTree
public Tree getTree()
- Specified by:
getTreein classJavaSourceElement
-
-