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 ICompilableTypeInternalprivate intprivate Expressionprivate intprivate AnnotationUseSiteTargetprivate IType -
Constructor Summary
ConstructorsConstructorDescriptionGosuAnnotation(ICompilableTypeInternal enclosingType, IType type, Expression expression, AnnotationUseSiteTarget target, int iOffset, int end) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetName()getType()private booleanprivate booleanhasRetentionPolicy(RetentionPolicy policy) private booleanvoidsetExpression(Expression expr) booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getNamein interfaceIGosuAnnotation
-
getType
- Specified by:
getTypein interfaceIGosuAnnotation
-
getNewExpressionAsString
- Specified by:
getNewExpressionAsStringin interfaceIGosuAnnotation
-
getExpression
- Specified by:
getExpressionin interfaceIGosuAnnotation
-
setExpression
-
clearExpression
public void clearExpression()- Specified by:
clearExpressionin interfaceIGosuAnnotation
-
getTarget
- Specified by:
getTargetin interfaceIGosuAnnotation
-
shouldPersistToClass
public boolean shouldPersistToClass()- Specified by:
shouldPersistToClassin interfaceIGosuAnnotation
-
shouldRetainAtRuntime
public boolean shouldRetainAtRuntime()- Specified by:
shouldRetainAtRuntimein interfaceIGosuAnnotation
-
hasRetentionPolicy
-
isSourceAnnotation
private boolean isSourceAnnotation() -
hasBadArgs
private boolean hasBadArgs() -
getOwnersType
- Specified by:
getOwnersTypein interfaceIGosuAnnotation
-
clearDebugInfo
public void clearDebugInfo()
-