Package gw.internal.gosu.parser
Class GosuDocAnnotation
- java.lang.Object
-
- gw.internal.gosu.parser.GosuDocAnnotation
-
- All Implemented Interfaces:
IGosuAnnotation,java.io.Serializable
public class GosuDocAnnotation extends java.lang.Object implements java.io.Serializable, IGosuAnnotation
Holds annotation information for a feature- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]_argsprivate Expression_expressionprivate ICompilableType_ownersTypeprivate IType_type
-
Constructor Summary
Constructors Constructor Description GosuDocAnnotation(ICompilableType ownersType, IType type, java.lang.String... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearExpression()private Expression[]exprArray(Expression... exprs)ExpressiongetExpression()java.lang.StringgetName()java.lang.StringgetNewExpressionAsString()ICompilableTypegetOwnersType()AnnotationUseSiteTargetgetTarget()ITypegetType()private <T extends ParsedElement>
TinitLocation(T pe)private java.lang.StringmakeArgsForNewExpression()booleanshouldPersistToClass()booleanshouldRetainAtRuntime()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.internal.gosu.parser.IGosuAnnotation
isJavaAnnotation
-
-
-
-
Field Detail
-
_type
private IType _type
-
_args
private java.lang.String[] _args
-
_expression
private volatile Expression _expression
-
_ownersType
private ICompilableType _ownersType
-
-
Constructor Detail
-
GosuDocAnnotation
public GosuDocAnnotation(ICompilableType ownersType, IType type, java.lang.String... args)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIGosuAnnotation
-
getType
public IType getType()
- Specified by:
getTypein interfaceIGosuAnnotation
-
getNewExpressionAsString
public java.lang.String getNewExpressionAsString()
- Specified by:
getNewExpressionAsStringin interfaceIGosuAnnotation
-
getExpression
public Expression getExpression()
- Specified by:
getExpressionin interfaceIGosuAnnotation
-
clearExpression
public void clearExpression()
- Specified by:
clearExpressionin interfaceIGosuAnnotation
-
shouldPersistToClass
public boolean shouldPersistToClass()
- Specified by:
shouldPersistToClassin interfaceIGosuAnnotation
-
shouldRetainAtRuntime
public boolean shouldRetainAtRuntime()
- Specified by:
shouldRetainAtRuntimein interfaceIGosuAnnotation
-
getOwnersType
public ICompilableType getOwnersType()
- Specified by:
getOwnersTypein interfaceIGosuAnnotation
-
getTarget
public AnnotationUseSiteTarget getTarget()
- Specified by:
getTargetin interfaceIGosuAnnotation
-
exprArray
private Expression[] exprArray(Expression... exprs)
-
initLocation
private <T extends ParsedElement> T initLocation(T pe)
-
makeArgsForNewExpression
private java.lang.String makeArgsForNewExpression()
-
-