parser
Class ExpressionParser.Default.Root
java.lang.Object
|
+--parser.ExpressionParser.Default.Node
|
+--parser.ExpressionParser.Default.Root
- All Implemented Interfaces:
- ExpressionParser.Node, ExpressionParser.Root
- Enclosing class:
- ExpressionParser.Default
- public static class ExpressionParser.Default.Root
- extends ExpressionParser.Default.Node
- implements ExpressionParser.Root
An implementation of Root
node.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExpressionParser.Default.Root
public ExpressionParser.Default.Root(ExpressionParser.Root source)
- Constructs a instance with the child nodes given by
source.getChildNodes()
etc.
- Parameters:
source
- the source.
ExpressionParser.Default.Root
public ExpressionParser.Default.Root(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.
expression
public ExpressionParser.Expression expression()
- Description copied from interface:
ExpressionParser.Root
- Returns the child node labeled by
expression
in the notavaCC source.
If there is not such a one, the resut is null
.
- Specified by:
expression
in interface ExpressionParser.Root
replaceChild
protected void replaceChild(ExpressionParser.Default.Node oldChild,
ExpressionParser.Default.Node newChild)