org.codehaus.groovy.ast
Class AnnotatedNode

java.lang.Object
  extended byorg.codehaus.groovy.ast.ASTNode
      extended byorg.codehaus.groovy.ast.AnnotatedNode
Direct Known Subclasses:
ClassNode, ConstructorNode, FieldNode, ImportNode, MethodNode, PropertyNode

public class AnnotatedNode
extends ASTNode

Base class for any AST node which is capable of being annotationed

Version:
$Revision: 1.1 $
Author:
James Strachan

Field Summary
private  java.util.Map annotations
           
private  boolean synthetic
           
 
Fields inherited from class org.codehaus.groovy.ast.ASTNode
EMPTY_STRING_ARRAY
 
Constructor Summary
AnnotatedNode()
           
 
Method Summary
 void addAnnotation(java.lang.String name, AnnotationNode value)
           
 void addAnnotations(java.util.List annotations)
           
 java.util.Map getAnnotations()
           
 AnnotationNode getAnnotations(java.lang.String name)
           
 boolean isSynthetic()
           
 void setSynthetic(boolean synthetic)
           
 
Methods inherited from class org.codehaus.groovy.ast.ASTNode
getColumnNumber, getLineNumber, getText, setColumnNumber, setCSTNode, setLineNumber, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotations

private java.util.Map annotations

synthetic

private boolean synthetic
Constructor Detail

AnnotatedNode

public AnnotatedNode()
Method Detail

getAnnotations

public java.util.Map getAnnotations()

getAnnotations

public AnnotationNode getAnnotations(java.lang.String name)

addAnnotation

public void addAnnotation(java.lang.String name,
                          AnnotationNode value)

addAnnotations

public void addAnnotations(java.util.List annotations)

isSynthetic

public boolean isSynthetic()

setSynthetic

public void setSynthetic(boolean synthetic)


Copyright © 2003-2005 The Codehaus. All Rights Reserved.