parser
Class ExpressionParser.Default.Number

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

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

An implementation of Number node.


Field Summary
 
Fields inherited from interface parser.ExpressionParser.Number
ID
 
Constructor Summary
ExpressionParser.Default.Number(ExpressionParser.NodeInitializationParameters parameters, boolean compact)
          Constructs a instance with the child nodes given by parameters.
ExpressionParser.Default.Number(ExpressionParser.Number source)
          Constructs a instance with the child nodes given by source.getChildNodes() etc.
 
Method Summary
protected  void replaceChild(ExpressionParser.Default.Node oldChild, ExpressionParser.Default.Node newChild)
           
 ExpressionParser.Token value()
          Returns the child node labeled by value in the notavaCC source.
 
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.Number

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

Parameters:
source - the source.

ExpressionParser.Default.Number

public ExpressionParser.Default.Number(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

value

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

Specified by:
value in interface ExpressionParser.Number

replaceChild

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