|
Groovy 1.7.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
class AnnotatedNode extends ASTNode
Base class for any AST node which is capable of being annotated
| Field Summary | |
|---|---|
ClassNode |
declaringClass
|
| Constructor Summary | |
AnnotatedNode()
|
|
| Method Summary | |
|---|---|
void
|
addAnnotation(AnnotationNode value)
|
void
|
addAnnotations(List annotations)
|
List
|
getAnnotations()
|
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. |
| Methods inherited from class ASTNode | |
|---|---|
| getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition, visit |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Field Detail |
|---|
ClassNode declaringClass
| Constructor Detail |
|---|
public AnnotatedNode()
| Method Detail |
|---|
public void addAnnotation(AnnotationNode value)
public void addAnnotations(List annotations)
public List getAnnotations()
public List getAnnotations(ClassNode type)
public ClassNode getDeclaringClass()
public boolean isSynthetic()
public void setDeclaringClass(ClassNode declaringClass)
public void setSynthetic(boolean synthetic)
Copyright © 2003-2009 The Codehaus. All rights reserved.