public class AnnotatedNode extends ASTNode implements GroovydocHolder<AnnotatedNode>
DOC_COMMENT
Constructor and Description |
---|
AnnotatedNode() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(AnnotationNode annotation) |
void |
addAnnotations(List<AnnotationNode> annotations) |
List<AnnotationNode> |
getAnnotations() |
List<AnnotationNode> |
getAnnotations(ClassNode type) |
ClassNode |
getDeclaringClass() |
Groovydoc |
getGroovydoc()
Get the groovydoc
|
AnnotatedNode |
getInstance()
Get GroovydocHolder instance
|
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.
|
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public List<AnnotationNode> getAnnotations()
public List<AnnotationNode> getAnnotations(ClassNode type)
public void addAnnotation(AnnotationNode annotation)
public void addAnnotations(List<AnnotationNode> annotations)
public ClassNode getDeclaringClass()
public void setDeclaringClass(ClassNode declaringClass)
public Groovydoc getGroovydoc()
GroovydocHolder
getGroovydoc
in interface GroovydocHolder<AnnotatedNode>
public AnnotatedNode getInstance()
GroovydocHolder
getInstance
in interface GroovydocHolder<AnnotatedNode>
public boolean hasNoRealSourcePosition()
See GROOVY-4161
public void setHasNoRealSourcePosition(boolean hasNoRealSourcePosition)
public boolean isSynthetic()
Note: This method has nothing to do with the synthetic flag for classes, fields, methods or properties.
public void setSynthetic(boolean synthetic)
Note: This method has nothing to do with the synthetic flag for classes, fields, methods or properties.