public class JavaSourceField extends Object implements IJavaClassField
| Modifier and Type | Field and Description |
|---|---|
protected JavaSourceType |
_containingClass |
protected com.sun.source.tree.VariableTree |
_fieldTree |
protected IJavaClassType |
_genericType |
protected IModifierList |
_modifierList |
protected IJavaClassInfo |
_type |
| Constructor and Description |
|---|
JavaSourceField(com.sun.source.tree.VariableTree fieldTree,
JavaSourceType containingClass) |
| Modifier and Type | Method and Description |
|---|---|
static JavaSourceField |
create(com.sun.source.tree.VariableTree fieldTree,
JavaSourceType containingType) |
IAnnotationInfo |
getAnnotation(Class annotationClass) |
IAnnotationInfo[] |
getDeclaredAnnotations() |
JavaSourceType |
getEnclosingClass() |
IJavaClassType |
getGenericType() |
IModifierList |
getModifierList() |
int |
getModifiers() |
String |
getName() |
String |
getRhs() |
IJavaClassInfo |
getType() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
boolean |
isEnumConstant() |
static boolean |
isEnumInit(com.sun.source.tree.VariableTree tree) |
boolean |
isSynthetic() |
String |
toString() |
protected com.sun.source.tree.VariableTree _fieldTree
protected JavaSourceType _containingClass
protected IModifierList _modifierList
protected IJavaClassInfo _type
protected IJavaClassType _genericType
public JavaSourceField(com.sun.source.tree.VariableTree fieldTree,
JavaSourceType containingClass)
public static JavaSourceField create(com.sun.source.tree.VariableTree fieldTree, JavaSourceType containingType)
public static boolean isEnumInit(com.sun.source.tree.VariableTree tree)
public String getName()
getName in interface IJavaClassFieldpublic String getRhs()
public IJavaClassInfo getType()
getType in interface IJavaClassFieldpublic IJavaClassType getGenericType()
getGenericType in interface IJavaClassFieldpublic boolean isEnumConstant()
isEnumConstant in interface IJavaClassFieldpublic IModifierList getModifierList()
public JavaSourceType getEnclosingClass()
getEnclosingClass in interface IJavaAnnotatedElementpublic boolean isSynthetic()
isSynthetic in interface IJavaClassFieldpublic int getModifiers()
getModifiers in interface IJavaClassFieldpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface IJavaAnnotatedElementpublic IAnnotationInfo getAnnotation(Class annotationClass)
getAnnotation in interface IJavaAnnotatedElementpublic IAnnotationInfo[] getDeclaredAnnotations()
getDeclaredAnnotations in interface IJavaAnnotatedElementCopyright © 2019. All rights reserved.