public class AnnotatedNode extends ASTNode implements GroovydocHolder<AnnotatedNode>
DOC_COMMENT
Constructor and Description |
---|
AnnotatedNode() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(AnnotationNode value) |
void |
addAnnotations(java.util.List<AnnotationNode> annotations) |
java.util.List<AnnotationNode> |
getAnnotations() |
java.util.List<AnnotationNode> |
getAnnotations(ClassNode type) |
ClassNode |
getDeclaringClass() |
Groovydoc |
getGroovydoc()
Get the groovydoc
|
AnnotatedNode |
getInstance()
Get GroovydocHolder instance
|
boolean |
hasNoRealSourcePosition()
Currently only ever returns true for default constructors
added by the compiler.
|
boolean |
isSynthetic()
returns true if this node is added by the compiler.
|
void |
setDeclaringClass(ClassNode declaringClass) |
void |
setHasNoRealSourcePosition(boolean value) |
void |
setSynthetic(boolean synthetic)
sets this node as a node added by the compiler.
|
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public java.util.List<AnnotationNode> getAnnotations()
public java.util.List<AnnotationNode> getAnnotations(ClassNode type)
public void addAnnotation(AnnotationNode value)
public void addAnnotations(java.util.List<AnnotationNode> annotations)
public boolean isSynthetic()
public void setSynthetic(boolean synthetic)
synthetic
- - if true this node is marked as
added by the compilerpublic ClassNode getDeclaringClass()
public void setDeclaringClass(ClassNode declaringClass)
declaringClass
- - The declaringClass to set.public boolean hasNoRealSourcePosition()
public void setHasNoRealSourcePosition(boolean value)
public Groovydoc getGroovydoc()
GroovydocHolder
getGroovydoc
in interface GroovydocHolder<AnnotatedNode>
public AnnotatedNode getInstance()
GroovydocHolder
getInstance
in interface GroovydocHolder<AnnotatedNode>