Package gw.internal.gosu.parser
Class GosuAnnotation
- java.lang.Object
-
- gw.internal.gosu.parser.GosuAnnotation
-
- All Implemented Interfaces:
IGosuAnnotation,java.io.Serializable
public class GosuAnnotation 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 ICompilableTypeInternal_enclosingTypeprivate int_endprivate Expression_expressionprivate int_startprivate AnnotationUseSiteTarget_targetprivate IType_type
-
Constructor Summary
Constructors Constructor Description GosuAnnotation(ICompilableTypeInternal enclosingType, IType type, Expression expression, AnnotationUseSiteTarget target, int iOffset, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDebugInfo()voidclearExpression()ExpressiongetExpression()java.lang.StringgetName()java.lang.StringgetNewExpressionAsString()ICompilableTypegetOwnersType()AnnotationUseSiteTargetgetTarget()ITypegetType()private booleanhasBadArgs()private booleanhasRetentionPolicy(java.lang.annotation.RetentionPolicy policy)private booleanisSourceAnnotation()voidsetExpression(Expression expr)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
-
_enclosingType
private ICompilableTypeInternal _enclosingType
-
_type
private IType _type
-
_expression
private Expression _expression
-
_target
private AnnotationUseSiteTarget _target
-
_start
private int _start
-
_end
private int _end
-
-
Constructor Detail
-
GosuAnnotation
public GosuAnnotation(ICompilableTypeInternal enclosingType, IType type, Expression expression, AnnotationUseSiteTarget target, int iOffset, int end)
-
-
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
-
setExpression
public void setExpression(Expression expr)
-
clearExpression
public void clearExpression()
- Specified by:
clearExpressionin interfaceIGosuAnnotation
-
getTarget
public AnnotationUseSiteTarget getTarget()
- Specified by:
getTargetin interfaceIGosuAnnotation
-
shouldPersistToClass
public boolean shouldPersistToClass()
- Specified by:
shouldPersistToClassin interfaceIGosuAnnotation
-
shouldRetainAtRuntime
public boolean shouldRetainAtRuntime()
- Specified by:
shouldRetainAtRuntimein interfaceIGosuAnnotation
-
hasRetentionPolicy
private boolean hasRetentionPolicy(java.lang.annotation.RetentionPolicy policy)
-
isSourceAnnotation
private boolean isSourceAnnotation()
-
hasBadArgs
private boolean hasBadArgs()
-
getOwnersType
public ICompilableType getOwnersType()
- Specified by:
getOwnersTypein interfaceIGosuAnnotation
-
clearDebugInfo
public void clearDebugInfo()
-
-