public class AnnotatedNode extends ASTNode
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() |
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, visit
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)