ist.palcom.communication.ast
Class ASTNode

java.lang.Object
  extended by ist.palcom.communication.ast.ASTNode
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AbstractXMLRepresentable, ControlItem, List, Opt, Selector, URL, URN, URNLeaf

public class ASTNode
extends Object
implements Cloneable


Field Summary
static boolean CHANGE
           
protected  ASTNode[] children
           
static boolean generatedWithCacheCycle
           
static boolean generatedWithCircularEnabled
           
static boolean IN_CIRCLE
           
static boolean LAST_CYCLE
           
protected  int numChildren
           
protected  ASTNode parent
           
 
Constructor Summary
ASTNode()
           
 
Method Summary
 void addChild(ASTNode node)
           
 Object clone()
           
 ASTNode copy()
           
 void flushCache()
           
 ASTNode fullCopy()
           
 ASTNode getChild(int i)
           
 ASTNode getChildNoTransform(int i)
           
 int getIndexOfChild(ASTNode node)
           
 int getNumChild()
           
 ASTNode getParent()
           
 void insertChild(ASTNode node, int i)
           
protected  int numChildren()
           
 boolean remove()
           
 void removeChild(int i)
           
 void setChild(ASTNode node, int i)
           
 void setParent(ASTNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, println, toString
 

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

parent

protected ASTNode parent

children

protected ASTNode[] children

numChildren

protected int numChildren
Constructor Detail

ASTNode

public ASTNode()
Method Detail

clone

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

copy

public ASTNode copy()

fullCopy

public ASTNode fullCopy()

flushCache

public void flushCache()

getChild

public ASTNode getChild(int i)

getIndexOfChild

public int getIndexOfChild(ASTNode node)

addChild

public void addChild(ASTNode node)

getChildNoTransform

public ASTNode getChildNoTransform(int i)

numChildren

protected int numChildren()

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)

removeChild

public void removeChild(int i)

remove

public boolean remove()