|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.Assign
org.lsmp.djep.xjep.function.XAssign
public class XAssign
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.
| Field Summary |
|---|
| Fields inherited from class org.nfunk.jep.function.PostfixMathCommand |
|---|
curNumberOfParameters, numberOfParameters |
| Constructor Summary | |
|---|---|
XAssign()
|
|
| 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 org.nfunk.jep.function.Assign |
|---|
evaluate |
| Methods inherited from class org.nfunk.jep.function.PostfixMathCommand |
|---|
checkNumberOfParameters, checkStack, getNumberOfParameters, run, setCurNumberOfParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XAssign()
| Method Detail |
|---|
public Node process(Node node,
Node[] children,
XJep xjep)
throws ParseException
process in interface CommandVisitorInode - top node of the treechildren - the children of the node after they have been preprocessed.xjep - a reference to the current XJep interface.
ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||