org.duelengine.duel.ast
Class IFCommandNode

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
                  extended by org.duelengine.duel.ast.IFCommandNode

public class IFCommandNode
extends CommandNode

Implements the single conditional command construct


Field Summary
static String EXT_NAME
           
static String IF_ATTR
           
static String TEST
           
 
Constructor Summary
IFCommandNode(AttributePair[] attr, DuelNode... children)
           
IFCommandNode(int index, int line, int column)
           
 
Method Summary
 void addAttribute(AttributePair attr)
           
 CodeBlockNode getTest()
           
 boolean isSelf(String tag)
           
 void setAttribute(String name, DuelNode value)
           
 
Methods inherited from class org.duelengine.duel.ast.CommandNode
getCommand
 
Methods inherited from class org.duelengine.duel.ast.ElementNode
canHaveChildren, clearAttributes, equals, getAttribute, getAttributeNames, getTagName, hasAttributes, hashCode, isAncestor, isAncestorOrSelf, isLinkAttribute, 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
 

Field Detail

IF_ATTR

public static final String IF_ATTR
See Also:
Constant Field Values

EXT_NAME

public static final String EXT_NAME
See Also:
Constant Field Values

TEST

public static final String TEST
See Also:
Constant Field Values
Constructor Detail

IFCommandNode

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

IFCommandNode

public IFCommandNode(AttributePair[] attr,
                     DuelNode... children)
Method Detail

getTest

public CodeBlockNode getTest()

isSelf

public boolean isSelf(String tag)
Overrides:
isSelf in class ElementNode

addAttribute

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

setAttribute

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


Copyright © 2011. All Rights Reserved.