AST
Class ASTNode

java.lang.Object
  extended by AST.SimpleNode
      extended by AST.ASTNode
All Implemented Interfaces:
Node, java.lang.Cloneable
Direct Known Subclasses:
Attribute, Element, List, Opt, Properties, Restrictions, Specification, Start, Value, XmlHeader

public class ASTNode
extends SimpleNode
implements java.lang.Cloneable


Field Summary
static int boundariesCrossed
           
static boolean CHANGE
           
protected static int duringRewrites
           
static boolean generatedWithCacheCycle
           
static boolean generatedWithCircularEnabled
           
static boolean IN_CIRCLE
           
 boolean inCircle
           
 boolean isFinal
           
static boolean LAST_CYCLE
           
protected static int REWRITE_CHANGE
           
protected static int REWRITE_INTERRUPT
           
protected static int REWRITE_NOCHANGE
           
protected static AST.ASTNode.State state
           
 
Fields inherited from class AST.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTNode()
           
ASTNode(int i)
           
ASTNode(OwlParser p, int i)
           
 
Method Summary
 void addChild(ASTNode node)
           
 void checkChild(Node n, int i)
           
 java.lang.Object clone()
           
 ASTNode copy()
           
 void dumpTree(java.lang.String indent, java.io.PrintStream pStream)
           
protected static boolean duringRewrites()
           
 ASTNode fullCopy()
           
 void genJavaCC(java.io.PrintStream pStream)
           
 ASTNode getChild(int i)
           
 ASTNode getChildNoTransform(int i)
           
 int getIndexOfChild(ASTNode node)
           
 int getNumChild()
           
 ASTNode getParent()
           
 void insertChild(ASTNode node, int i)
           
 java.lang.Object jjtAccept(OwlParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void jjtAddChild(Node n, int i)
          This method tells the node to add its argument to the node's list of children.
 boolean mayHaveRewrite()
           
 ASTNode rewriteTo()
           
 void setChild(ASTNode node, int i)
           
 void setParent(ASTNode node)
           
 
Methods inherited from class AST.SimpleNode
childrenAccept, dump, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IN_CIRCLE

public static boolean IN_CIRCLE

CHANGE

public static boolean CHANGE

LAST_CYCLE

public static boolean LAST_CYCLE

generatedWithCircularEnabled

public static boolean generatedWithCircularEnabled

generatedWithCacheCycle

public static boolean generatedWithCacheCycle

boundariesCrossed

public static int boundariesCrossed

state

protected static AST.ASTNode.State state

inCircle

public boolean inCircle

isFinal

public boolean isFinal

REWRITE_CHANGE

protected static final int REWRITE_CHANGE
See Also:
Constant Field Values

REWRITE_NOCHANGE

protected static final int REWRITE_NOCHANGE
See Also:
Constant Field Values

REWRITE_INTERRUPT

protected static final int REWRITE_INTERRUPT
See Also:
Constant Field Values

duringRewrites

protected static int duringRewrites
Constructor Detail

ASTNode

public ASTNode(int i)

ASTNode

public ASTNode(OwlParser p,
               int i)

ASTNode

public ASTNode()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

copy

public ASTNode copy()

fullCopy

public ASTNode fullCopy()

dumpTree

public void dumpTree(java.lang.String indent,
                     java.io.PrintStream pStream)

jjtAccept

public java.lang.Object jjtAccept(OwlParserVisitor visitor,
                                  java.lang.Object data)
Description copied from class: SimpleNode
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode

jjtAddChild

public void jjtAddChild(Node n,
                        int i)
Description copied from interface: Node
This method tells the node to add its argument to the node's list of children.

Specified by:
jjtAddChild in interface Node
Overrides:
jjtAddChild in class SimpleNode

checkChild

public void checkChild(Node n,
                       int i)

getChild

public ASTNode getChild(int i)

getIndexOfChild

public int getIndexOfChild(ASTNode node)

addChild

public void addChild(ASTNode node)

getChildNoTransform

public ASTNode getChildNoTransform(int i)

getNumChild

public int getNumChild()

setChild

public void setChild(ASTNode node,
                     int i)

insertChild

public void insertChild(ASTNode node,
                        int i)

getParent

public ASTNode getParent()

setParent

public void setParent(ASTNode node)

duringRewrites

protected static boolean duringRewrites()

mayHaveRewrite

public boolean mayHaveRewrite()

genJavaCC

public void genJavaCC(java.io.PrintStream pStream)

rewriteTo

public ASTNode rewriteTo()