Package gw.internal.gosu.parser
Class FieldJavaClassField
- java.lang.Object
-
- gw.internal.gosu.parser.FieldJavaClassField
-
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassField,java.io.Serializable
public class FieldJavaClassField extends java.lang.Object implements IJavaClassField
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldJavaClassField(java.lang.reflect.Field field, IModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object o)IAnnotationInfogetAnnotation(java.lang.Class annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.IAnnotationInfo[]getDeclaredAnnotations()Returns all annotations that are directly present on this element.IJavaClassInfogetEnclosingClass()IJavaClassTypegetGenericType()intgetModifiers()java.lang.StringgetName()IJavaClassInfogetType()booleanisAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.booleanisEnumConstant()booleanisSynthetic()voidset(java.lang.Object o, java.lang.Object value)voidsetAccessible(boolean accessible)java.lang.StringtoString()-
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
-
_field
private java.lang.reflect.Field _field
-
_module
private IModule _module
-
-
Constructor Detail
-
FieldJavaClassField
public FieldJavaClassField(java.lang.reflect.Field field, IModule module)
-
-
Method Detail
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceIJavaClassField
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIJavaClassField
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIJavaClassField
-
getType
public IJavaClassInfo getType()
- Specified by:
getTypein interfaceIJavaClassField
-
getGenericType
public IJavaClassType getGenericType()
- Specified by:
getGenericTypein interfaceIJavaClassField
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-
isEnumConstant
public boolean isEnumConstant()
- Specified by:
isEnumConstantin interfaceIJavaClassField
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Description copied from interface:IJavaAnnotatedElementReturns 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:
isAnnotationPresentin 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
public IAnnotationInfo getAnnotation(java.lang.Class annotationClass)
Description copied from interface:IJavaAnnotatedElementReturns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotationin 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
public IAnnotationInfo[] getDeclaredAnnotations()
Description copied from interface:IJavaAnnotatedElementReturns 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:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement- Returns:
- All annotations directly present on this element
-
setAccessible
public void setAccessible(boolean accessible)
-
get
public java.lang.Object get(java.lang.Object o) throws java.lang.IllegalAccessException- Throws:
java.lang.IllegalAccessException
-
set
public void set(java.lang.Object o, java.lang.Object value) throws java.lang.IllegalAccessException- Throws:
java.lang.IllegalAccessException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-