parser
Class ExpressionParser.Default.Multiplication
java.lang.Object
|
+--parser.ExpressionParser.Default.Node
|
+--parser.ExpressionParser.Default.Multiplication
- All Implemented Interfaces:
- ExpressionParser.Expression, ExpressionParser.Multiplication, ExpressionParser.Node
- Enclosing class:
- ExpressionParser.Default
- public static class ExpressionParser.Default.Multiplication
- extends ExpressionParser.Default.Node
- implements ExpressionParser.Multiplication
An implementation of Multiplication
node.
ExpressionParser.Default.Multiplication
public ExpressionParser.Default.Multiplication(ExpressionParser.Multiplication source)
- Constructs a instance with the child nodes given by
source.getChildNodes()
etc.
- Parameters:
source
- the source.
ExpressionParser.Default.Multiplication
public ExpressionParser.Default.Multiplication(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.
operand1
public ExpressionParser.Expression operand1()
- Description copied from interface:
ExpressionParser.Multiplication
- 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.Multiplication
operand2
public ExpressionParser.Expression operand2()
- Description copied from interface:
ExpressionParser.Multiplication
- 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.Multiplication
replaceChild
protected void replaceChild(ExpressionParser.Default.Node oldChild,
ExpressionParser.Default.Node newChild)