public class AnnotatedNode extends ASTNode
| Constructor and Description |
|---|
AnnotatedNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(AnnotationNode value) |
void |
addAnnotations(java.util.List annotations) |
java.util.List |
getAnnotations() |
java.util.List |
getAnnotations(ClassNode type) |
ClassNode |
getDeclaringClass() |
boolean |
isSynthetic()
returns true if this node is added by the compiler.
|
void |
setDeclaringClass(ClassNode declaringClass) |
void |
setSynthetic(boolean synthetic)
sets this node as a node added by the compiler.
|
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition, visitpublic java.util.List getAnnotations()
public java.util.List getAnnotations(ClassNode type)
public void addAnnotation(AnnotationNode value)
public void addAnnotations(java.util.List 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.