org.duelengine.duel.ast
Class ContainerNode

java.lang.Object
  extended by org.duelengine.duel.ast.DuelNode
      extended by org.duelengine.duel.ast.ContainerNode
Direct Known Subclasses:
ElementNode

public class ContainerNode
extends DuelNode


Constructor Summary
protected ContainerNode(DuelNode... children)
           
  ContainerNode(int index, int line, int column)
           
 
Method Summary
 void appendChild(DuelNode child)
           
 int childCount()
           
 boolean equals(Object arg)
           
 List<DuelNode> getChildren()
           
 DuelNode getFirstChild()
           
 DuelNode getLastChild()
           
 boolean hasChildren()
           
 int hashCode()
           
 boolean removeChild(DuelNode oldChild)
           
 boolean replaceChild(DuelNode newChild, DuelNode oldChild)
           
 String toString()
           
 
Methods inherited from class org.duelengine.duel.ast.DuelNode
getColumn, getIndex, getLine, getParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerNode

public ContainerNode(int index,
                     int line,
                     int column)

ContainerNode

protected ContainerNode(DuelNode... children)
Method Detail

hasChildren

public boolean hasChildren()

childCount

public int childCount()

getChildren

public List<DuelNode> getChildren()

getFirstChild

public DuelNode getFirstChild()

getLastChild

public DuelNode getLastChild()

appendChild

public void appendChild(DuelNode child)

removeChild

public boolean removeChild(DuelNode oldChild)

replaceChild

public boolean replaceChild(DuelNode newChild,
                            DuelNode oldChild)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object arg)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.