org.lsmp.djep.xjep.function
Class XAssign
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.Assign
org.lsmp.djep.xjep.function.XAssign
- All Implemented Interfaces:
- CommandVisitorI, CallbackEvaluationI, PostfixMathCommandI
public class XAssign
- extends Assign
- implements CommandVisitorI
An assignment operator so we can do
x=3+4.
This function implements the SpecialEvaluationI interface
so that it handles seting the value of a variable.
- Author:
- Rich Morris
Created on 18-Nov-2003
|
Method Summary |
Node |
process(Node node,
Node[] children,
XJep xjep)
In the pre-process stage, set the equation of the lhs variable to the rhs equation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XAssign
public XAssign()
process
public Node process(Node node,
Node[] children,
XJep xjep)
throws ParseException
- In the pre-process stage, set the equation of the lhs variable to the rhs equation.
- Specified by:
process in interface CommandVisitorI
- Parameters:
node - top node of the treechildren - the children of the node after they have been preprocessed.xjep - a reference to the current XJep interface.
- Returns:
- top node of the results.
- Throws:
ParseException
Copyright © 2014. All rights reserved.