com.redhat.persistence.pdl.nodes
Class Node
java.lang.Object
com.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
|
Constructor Summary |
Node()
|
versionId
public static final String versionId
- See Also:
- Constant Field Values
ALL
public static final Node.Filter ALL
Node
public Node()
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