public class JavaSourceField extends JavaSourceElement 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() |
com.sun.source.tree.Tree |
getTree() |
IJavaClassInfo |
getType() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
boolean |
isEnumConstant() |
static boolean |
isEnumInit(com.sun.source.tree.VariableTree tree) |
boolean |
isSynthetic() |
String |
toString() |
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocationInfoprotected 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 IJavaAnnotatedElementgetEnclosingClass in class JavaSourceElementpublic 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 IJavaAnnotatedElementpublic com.sun.source.tree.Tree getTree()
getTree in class JavaSourceElementCopyright © 2019. All rights reserved.