org.codehaus.groovy.ast
Class MetadataNode

java.lang.Object
  |
  +--org.codehaus.groovy.ast.ASTNode
        |
        +--org.codehaus.groovy.ast.MetadataNode
Direct Known Subclasses:
ClassNode, ConstructorNode, FieldNode, MethodNode

public class MetadataNode
extends ASTNode

Base class for any AST node which is capable of storing metadata

Version:
$Revision: 1.1 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.codehaus.groovy.ast.ASTNode
EMPTY_STRING_ARRAY
 
Constructor Summary
MetadataNode()
           
 
Method Summary
 void addAttribute(String name, Object value)
           
 Map getAttributes()
           
 Object getAttributes(String name)
           
 void setAttribute(String name, Object value)
           
 
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
 

Constructor Detail

MetadataNode

public MetadataNode()
Method Detail

getAttributes

public Map getAttributes()

getAttributes

public Object getAttributes(String name)

addAttribute

public void addAttribute(String name,
                         Object value)

setAttribute

public void setAttribute(String name,
                         Object value)


Copyright © 2003 The Codehaus. All Rights Reserved.