Package gw.internal.gosu.parser
Class GosuAnnotation
java.lang.Object
gw.internal.gosu.parser.GosuAnnotation
- All Implemented Interfaces:
IGosuAnnotation
,Serializable
Holds annotation information for a feature
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ICompilableTypeInternal
private int
private Expression
private int
private AnnotationUseSiteTarget
private IType
-
Constructor Summary
ConstructorsConstructorDescriptionGosuAnnotation
(ICompilableTypeInternal enclosingType, IType type, Expression expression, AnnotationUseSiteTarget target, int iOffset, int end) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getName()
getType()
private boolean
private boolean
hasRetentionPolicy
(RetentionPolicy policy) private boolean
void
setExpression
(Expression expr) boolean
boolean
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 Details
-
_enclosingType
-
_type
-
_expression
-
_target
-
_start
private int _start -
_end
private int _end
-
-
Constructor Details
-
GosuAnnotation
public GosuAnnotation(ICompilableTypeInternal enclosingType, IType type, Expression expression, AnnotationUseSiteTarget target, int iOffset, int end)
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceIGosuAnnotation
-
getType
- Specified by:
getType
in interfaceIGosuAnnotation
-
getNewExpressionAsString
- Specified by:
getNewExpressionAsString
in interfaceIGosuAnnotation
-
getExpression
- Specified by:
getExpression
in interfaceIGosuAnnotation
-
setExpression
-
clearExpression
public void clearExpression()- Specified by:
clearExpression
in interfaceIGosuAnnotation
-
getTarget
- Specified by:
getTarget
in interfaceIGosuAnnotation
-
shouldPersistToClass
public boolean shouldPersistToClass()- Specified by:
shouldPersistToClass
in interfaceIGosuAnnotation
-
shouldRetainAtRuntime
public boolean shouldRetainAtRuntime()- Specified by:
shouldRetainAtRuntime
in interfaceIGosuAnnotation
-
hasRetentionPolicy
-
isSourceAnnotation
private boolean isSourceAnnotation() -
hasBadArgs
private boolean hasBadArgs() -
getOwnersType
- Specified by:
getOwnersType
in interfaceIGosuAnnotation
-
clearDebugInfo
public void clearDebugInfo()
-