ClassNode, Expression, FieldNode, ImportNode, MethodNode, PackageNode, Parameter, PropertyNodepublic class AnnotatedNode extends ASTNode
| Constructor | Description |
|---|---|
AnnotatedNode() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAnnotation(AnnotationNode value) |
|
void |
addAnnotations(List<AnnotationNode> annotations) |
|
List<AnnotationNode> |
getAnnotations() |
|
List<AnnotationNode> |
getAnnotations(ClassNode type) |
|
ClassNode |
getDeclaringClass() |
|
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, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visitpublic List<AnnotationNode> getAnnotations()
public List<AnnotationNode> getAnnotations(ClassNode type)
public void addAnnotation(AnnotationNode value)
public void addAnnotations(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)