com.redhat.persistence.pdl.nodes
Class Node

java.lang.Object
  extended bycom.redhat.persistence.pdl.nodes.Node
Direct Known Subclasses:
AST, BindingNd, ColumnNd, DataOperationNd, DbTypeNd, EventNd, FileNd, IdentifierNd, ImportNd, JavaClassNd, JoinNd, MappingNd, ModelNd, ObjectTypeNd, PathNd, QualiasNd, SQLBlockNd, StatementNd, SuperNd, TypeNd

public abstract class Node
extends Object

Node

Version:
$Revision: #6 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Nested Class Summary
static class Node.Field
           
static interface Node.Filter
          Traversals The following code is used to perform traversals over the parse tree.
static class Node.IncludeFilter
           
static class Node.Switch
          Dynamic Dispatch The following code is provided in order to perform dynamic dispatch on node type.
static class Node.Traversal
           
 
Field Summary
static Node.Filter ALL
           
static String versionId
           
 
Constructor Summary
Node()
           
 
Method Summary
 void add(Node.Field field, Node child)
           
 void dispatch(Node.Switch sw)
           
 Object get(Node.Field field)
           
 int getColumn()
           
 Node.Field getField()
          Under Construction
 Collection getFields()
           
 FileNd getFile()
           
 int getIndex()
           
 int getLine()
           
 String getLocation()
           
 Node getParent()
           
 void setColumn(int column)
           
 void setLine(int line)
          Line info
 String toString()
           
 void traverse(Node.Switch sw)
           
 void traverse(Node.Switch sw, Node.Filter f)
           
 void traverse(Node.Traversal t)
           
 String validate(Node.Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

ALL

public static final Node.Filter ALL
Constructor Detail

Node

public Node()
Method Detail

dispatch

public void dispatch(Node.Switch sw)

traverse

public void traverse(Node.Switch sw)

traverse

public void traverse(Node.Switch sw,
                     Node.Filter f)

traverse

public void traverse(Node.Traversal t)

get

public Object get(Node.Field field)

getIndex

public int getIndex()

add

public void add(Node.Field field,
                Node child)

getFields

public Collection getFields()

validate

public String validate(Node.Field field)

setLine

public void setLine(int line)
Line info


getLine

public int getLine()

setColumn

public void setColumn(int column)

getColumn

public int getColumn()

getLocation

public String getLocation()

getField

public Node.Field getField()
Under Construction


getParent

public Node getParent()

getFile

public FileNd getFile()

toString

public String toString()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC