AST
Class ASTNode
java.lang.Object
AST.SimpleNode
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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ASTNode
public ASTNode(int i)
ASTNode
public ASTNode(OwlParser p,
int i)
ASTNode
public ASTNode()
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()
genPrettyPrinter
public void genPrettyPrinter(java.lang.String ind,
java.io.PrintStream pStream)
genRewrites
public void genRewrites(java.io.PrintStream pStream)
ind
public java.lang.String ind(int n)
goStart
public Start goStart()
getSubClasses
public java.util.ArrayList getSubClasses(OwlClassDecl klass,
java.util.ArrayList l)
rewriteTo
public ASTNode rewriteTo()