public class AnnotatedNode extends ASTNode
Base class for any AST node which is capable of being annotated
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addAnnotation(AnnotationNode annotation) |
|
void |
addAnnotations(List<AnnotationNode> annotations) |
|
List<AnnotationNode> |
getAnnotations() |
|
List<AnnotationNode> |
getAnnotations(ClassNode type) |
|
ClassNode |
getDeclaringClass() |
|
Groovydoc |
getGroovydoc() |
|
AnnotatedNode |
getInstance() |
|
boolean |
hasNoRealSourcePosition() Returns true for default constructors added by the compiler. |
|
boolean |
isSynthetic() Indicates if this node was added by the compiler. |
|
void |
setDeclaringClass(ClassNode declaringClass) |
|
void |
setHasNoRealSourcePosition(boolean hasNoRealSourcePosition) |
|
void |
setSynthetic(boolean synthetic) Sets this node as a node added by the compiler. |
Methods inherited from class | Name |
---|---|
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Returns true for default constructors added by the compiler.
See GROOVY-4161
Indicates if this node was added by the compiler.
Note: This method has nothing to do with the synthetic flag for classes, fields, methods or properties.
Sets this node as a node added by the compiler.
Note: This method has nothing to do with the synthetic flag for classes, fields, methods or properties.