org.codehaus.groovy.ast
Class AnnotatedNode

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

author:
James Strachan
version:
$Revision: 10976 $

Field Summary
 List annotations
           
 ClassNode declaringClass
           
 boolean synthetic
           
 
Constructor Summary
AnnotatedNode()
           
 
Method Summary
void addAnnotation(AnnotationNode value)
          
void addAnnotations(List annotations)
          
void checkInit()
          
List getAnnotations()
          
List getAnnotations(ClassNode type)
          
ClassNode getDeclaringClass()
          
boolean isSynthetic()
          
void setDeclaringClass(ClassNode declaringClass)
          
void setSynthetic(boolean synthetic)
          
 

Constructor Detail

AnnotatedNode

public AnnotatedNode()


Method Detail

addAnnotation

public void addAnnotation(AnnotationNode value)


addAnnotations

public void addAnnotations(List annotations)


checkInit

void checkInit()


getAnnotations

public List getAnnotations()


getAnnotations

public List getAnnotations(ClassNode type)


getDeclaringClass

public ClassNode getDeclaringClass()


isSynthetic

public boolean isSynthetic()


setDeclaringClass

public void setDeclaringClass(ClassNode declaringClass)
param:
declaringClass The declaringClass to set.


setSynthetic

public void setSynthetic(boolean synthetic)