Class JavaSourceAnnotationInfo
- java.lang.Object
-
- gw.internal.gosu.parser.java.classinfo.JavaSourceAnnotationInfo
-
- All Implemented Interfaces:
IAnnotationInfo,java.io.Serializable
public class JavaSourceAnnotationInfo extends java.lang.Object implements IAnnotationInfo
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private com.sun.source.tree.AnnotationTree_annotationTreeprivate IModule_gosuModuleprivate java.lang.String_nameprivate IJavaAnnotatedElement_ownerprivate IJavaClassInfo_type
-
Constructor Summary
Constructors Constructor Description JavaSourceAnnotationInfo(com.sun.source.tree.AnnotationTree annotationTree, IJavaAnnotatedElement owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Objectevaluate(IJavaClassInfo type, com.sun.source.tree.ExpressionTree valueTree)java.lang.StringgetDescription()private JavaSourceTypegetEnclosingType(IJavaAnnotatedElement owner)java.lang.ObjectgetFieldValue(java.lang.String fieldName)java.lang.ObjectgetInstance()java.lang.StringgetName()ITypegetOwnersType()ITypegetType()private ITypehandleSingleElementArrayType(java.lang.String text, IJavaClassInfo type)private voidinitNameAndType()private java.lang.ObjectparseEnum(java.lang.String text, IJavaClassInfo type)private java.lang.ObjectparseValue(IJavaClassMethod method)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IAnnotationInfo
getTarget
-
-
-
-
Field Detail
-
_annotationTree
private com.sun.source.tree.AnnotationTree _annotationTree
-
_owner
private IJavaAnnotatedElement _owner
-
_gosuModule
private IModule _gosuModule
-
_name
private java.lang.String _name
-
_type
private IJavaClassInfo _type
-
-
Constructor Detail
-
JavaSourceAnnotationInfo
public JavaSourceAnnotationInfo(com.sun.source.tree.AnnotationTree annotationTree, IJavaAnnotatedElement owner)
-
-
Method Detail
-
getType
public IType getType()
- Specified by:
getTypein interfaceIAnnotationInfo
-
getInstance
public java.lang.Object getInstance()
- Specified by:
getInstancein interfaceIAnnotationInfo
-
getFieldValue
public java.lang.Object getFieldValue(java.lang.String fieldName)
- Specified by:
getFieldValuein interfaceIAnnotationInfo
-
parseValue
private java.lang.Object parseValue(IJavaClassMethod method)
-
evaluate
private java.lang.Object evaluate(IJavaClassInfo type, com.sun.source.tree.ExpressionTree valueTree)
-
handleSingleElementArrayType
private IType handleSingleElementArrayType(java.lang.String text, IJavaClassInfo type)
-
getEnclosingType
private JavaSourceType getEnclosingType(IJavaAnnotatedElement owner)
-
parseEnum
private java.lang.Object parseEnum(java.lang.String text, IJavaClassInfo type)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIAnnotationInfo
-
initNameAndType
private void initNameAndType()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceIAnnotationInfo
-
getOwnersType
public IType getOwnersType()
- Specified by:
getOwnersTypein interfaceIAnnotationInfo
-
-