Package gw.internal.gosu.parser
Class GosuAnnotation
- java.lang.Object
-
- gw.internal.gosu.parser.GosuAnnotation
-
- All Implemented Interfaces:
IGosuAnnotation
,Serializable
public class GosuAnnotation extends Object implements Serializable, IGosuAnnotation
Holds annotation information for a feature- See Also:
- Serialized Form
-
-
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 void
clearDebugInfo()
void
clearExpression()
Expression
getExpression()
String
getName()
String
getNewExpressionAsString()
ICompilableType
getOwnersType()
AnnotationUseSiteTarget
getTarget()
IType
getType()
void
setExpression(Expression expr)
boolean
shouldPersistToClass()
boolean
shouldRetainAtRuntime()
-
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
-
-
-
-
Constructor Detail
-
GosuAnnotation
public GosuAnnotation(ICompilableTypeInternal enclosingType, IType type, Expression expression, AnnotationUseSiteTarget target, int iOffset, int end)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceIGosuAnnotation
-
getType
public IType getType()
- Specified by:
getType
in interfaceIGosuAnnotation
-
getNewExpressionAsString
public String getNewExpressionAsString()
- Specified by:
getNewExpressionAsString
in interfaceIGosuAnnotation
-
getExpression
public Expression getExpression()
- Specified by:
getExpression
in interfaceIGosuAnnotation
-
setExpression
public void setExpression(Expression expr)
-
clearExpression
public void clearExpression()
- Specified by:
clearExpression
in interfaceIGosuAnnotation
-
getTarget
public AnnotationUseSiteTarget getTarget()
- Specified by:
getTarget
in interfaceIGosuAnnotation
-
shouldPersistToClass
public boolean shouldPersistToClass()
- Specified by:
shouldPersistToClass
in interfaceIGosuAnnotation
-
shouldRetainAtRuntime
public boolean shouldRetainAtRuntime()
- Specified by:
shouldRetainAtRuntime
in interfaceIGosuAnnotation
-
getOwnersType
public ICompilableType getOwnersType()
- Specified by:
getOwnersType
in interfaceIGosuAnnotation
-
clearDebugInfo
public void clearDebugInfo()
-
-