parser
Class ExpressionParser.Default.Division

java.lang.Object
  |
  +--parser.ExpressionParser.Default.Node
        |
        +--parser.ExpressionParser.Default.Division
All Implemented Interfaces:
ExpressionParser.Division, ExpressionParser.Expression, ExpressionParser.Node
Enclosing class:
ExpressionParser.Default

public static class ExpressionParser.Default.Division
extends ExpressionParser.Default.Node
implements ExpressionParser.Division

An implementation of Division node.


Field Summary
 
Fields inherited from interface parser.ExpressionParser.Division
ID
 
Constructor Summary
ExpressionParser.Default.Division(ExpressionParser.Division source)
          Constructs a instance with the child nodes given by source.getChildNodes() etc.
ExpressionParser.Default.Division(ExpressionParser.NodeInitializationParameters parameters, boolean compact)
          Constructs a instance with the child nodes given by parameters.
 
Method Summary
 ExpressionParser.Expression operand1()
          Returns the child node labeled by operand1 in the notavaCC source.
 ExpressionParser.Expression operand2()
          Returns the child node labeled by operand2 in the notavaCC source.
protected  void replaceChild(ExpressionParser.Default.Node oldChild, ExpressionParser.Default.Node newChild)
           
 
Methods inherited from class parser.ExpressionParser.Default.Node
accept, getChildNodes, getParentNode, replace, replaceChild, setParentNode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface parser.ExpressionParser.Node
accept, getChildNodes, getParentNode, setParentNode
 

Constructor Detail

ExpressionParser.Default.Division

public ExpressionParser.Default.Division(ExpressionParser.Division source)
Constructs a instance with the child nodes given by source.getChildNodes() etc.

Parameters:
source - the source.

ExpressionParser.Default.Division

public ExpressionParser.Default.Division(ExpressionParser.NodeInitializationParameters parameters,
                                         boolean compact)
Constructs a instance with the child nodes given by parameters.

ExpressionParser.Node.getChildNodes() of the node is modifiable and ordered by the position in the parsed text.

Parameters:
parameters - the parameters for initialization.
compact - remove the children that is not labeled.
Method Detail

operand1

public ExpressionParser.Expression operand1()
Description copied from interface: ExpressionParser.Division
Returns the child node labeled by operand1 in the notavaCC source. If there is not such a one, the resut is null.

Specified by:
operand1 in interface ExpressionParser.Division

operand2

public ExpressionParser.Expression operand2()
Description copied from interface: ExpressionParser.Division
Returns the child node labeled by operand2 in the notavaCC source. If there is not such a one, the resut is null.

Specified by:
operand2 in interface ExpressionParser.Division

replaceChild

protected void replaceChild(ExpressionParser.Default.Node oldChild,
                            ExpressionParser.Default.Node newChild)