Package gw.internal.gosu.parser
Class AsmFieldJavaClassField
java.lang.Object
gw.lang.reflect.java.JavaSourceElement
gw.internal.gosu.parser.AsmFieldJavaClassField
- All Implemented Interfaces:
IJavaAnnotatedElement
,IJavaClassField
,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JavaSourceElement
getAnnotation
(Class annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null.Returns all annotations that are directly present on this element.int
getName()
com.sun.source.tree.Tree
getTree()
getType()
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.boolean
boolean
toString()
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 Details
-
_field
-
_module
-
-
Constructor Details
-
AsmFieldJavaClassField
-
-
Method Details
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSynthetic
in interfaceIJavaClassField
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in interfaceIJavaClassField
-
getName
- Specified by:
getName
in interfaceIJavaClassField
-
getType
- Specified by:
getType
in interfaceIJavaClassField
-
getGenericType
- Specified by:
getGenericType
in interfaceIJavaClassField
-
getEnclosingClass
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
- Specified by:
getEnclosingClass
in classJavaSourceElement
-
isEnumConstant
public boolean isEnumConstant()- Specified by:
isEnumConstant
in interfaceIJavaClassField
-
isAnnotationPresent
Description copied from interface:IJavaAnnotatedElement
Returns true if an annotation for the specified type is present on this element, else false. This method is designed primarily for convenient access to marker annotations.- Specified by:
isAnnotationPresent
in interfaceIJavaAnnotatedElement
- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- true if an annotation for the specified annotation type is present on this element, else false
-
getAnnotation
Description copied from interface:IJavaAnnotatedElement
Returns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotation
in interfaceIJavaAnnotatedElement
- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- this element's annotation for the specified annotation type if present on this element, else null
-
getDeclaredAnnotations
Description copied from interface:IJavaAnnotatedElement
Returns all annotations that are directly present on this element. Unlike the other methods in this interface, this method ignores inherited annotations. (Returns an array of length zero if no annotations are directly present on this element.) The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.- Specified by:
getDeclaredAnnotations
in interfaceIJavaAnnotatedElement
- Returns:
- All annotations directly present on this element
-
toString
-
getStaticValue
-
getTree
public com.sun.source.tree.Tree getTree()- Specified by:
getTree
in classJavaSourceElement
-
findSourceField
-