org.duelengine.duel.ast
Class CommandNode

java.lang.Object
  extended by org.duelengine.duel.ast.DuelNode
      extended by org.duelengine.duel.ast.ContainerNode
          extended by org.duelengine.duel.ast.ElementNode
              extended by org.duelengine.duel.ast.CommandNode
Direct Known Subclasses:
CALLCommandNode, FORCommandNode, IFCommandNode, PARTCommandNode, VIEWCommandNode, XORCommandNode

public abstract class CommandNode
extends ElementNode


Constructor Summary
protected CommandNode(CommandName cmd, String name, boolean codeAttrs, AttributePair[] attr, DuelNode... children)
           
protected CommandNode(CommandName cmd, String name, boolean codeAttrs, int index, int line, int column)
           
 
Method Summary
 void addAttribute(AttributePair attr)
           
 CommandName getCommand()
           
 void setAttribute(String name, DuelNode value)
           
 
Methods inherited from class org.duelengine.duel.ast.ElementNode
canHaveChildren, clearAttributes, equals, getAttribute, getAttributeNames, getTagName, hasAttributes, hashCode, isAncestor, isAncestorOrSelf, isBoolAttribute, isLinkAttribute, isSelf, mapAttrName, removeAttribute
 
Methods inherited from class org.duelengine.duel.ast.ContainerNode
appendChild, childCount, getChildren, getFirstChild, getLastChild, hasChildren, removeChild, replaceChild, 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

CommandNode

protected CommandNode(CommandName cmd,
                      String name,
                      boolean codeAttrs,
                      int index,
                      int line,
                      int column)

CommandNode

protected CommandNode(CommandName cmd,
                      String name,
                      boolean codeAttrs,
                      AttributePair[] attr,
                      DuelNode... children)
Method Detail

getCommand

public CommandName getCommand()

addAttribute

public void addAttribute(AttributePair attr)
                  throws NullPointerException
Overrides:
addAttribute in class ElementNode
Throws:
NullPointerException

setAttribute

public void setAttribute(String name,
                         DuelNode value)
Overrides:
setAttribute in class ElementNode


Copyright © 2012. All Rights Reserved.