[Mathlib-commitlog] SF.net SVN: mathlib:[762] JMathLib/trunk/src/jmathlib/core/tokens/ IfThenOperat
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-24 19:50:23
|
Revision: 762
http://mathlib.svn.sourceforge.net/mathlib/?rev=762&view=rev
Author: st_mueller
Date: 2009-01-24 19:50:17 +0000 (Sat, 24 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/tokens/IfThenOperatorToken.java
Modified: JMathLib/trunk/src/jmathlib/core/tokens/IfThenOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/tokens/IfThenOperatorToken.java 2009-01-24 19:47:55 UTC (rev 761)
+++ JMathLib/trunk/src/jmathlib/core/tokens/IfThenOperatorToken.java 2009-01-24 19:50:17 UTC (rev 762)
@@ -1,6 +1,7 @@
package jmathlib.core.tokens;
import jmathlib.core.interpreter.*;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@@ -50,23 +51,25 @@
public Expression getIfRelation()
{
- return null; //ifRelation;
+ return null; //ifRelation;
}
public Expression getIfCode()
{
- return null; //ifCode;
+ return null; //ifCode;
}
public Expression getElseCode()
{
- return null; //elseCode;
+ return null; //elseCode;
}
/**evaluates the operator
- @param operands = the operators operands
- @return the result of the test as an OperandToken*/
- public OperandToken evaluate(Token[] operands)
+ * @param operands = the operators operands
+ * @param
+ * @return the result of the test as an OperandToken
+ */
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
ErrorLogger.debugLine("Parser: IfThen: evaluate "+conditions.size());
@@ -79,7 +82,7 @@
ConditionToken conditionToken = ((ConditionToken)conditions.get(pos));
ErrorLogger.debugLine("Parser: IfThen: cond: " + conditionToken.toString());
- result = conditionToken.evaluate(null);
+ result = conditionToken.evaluate(null, globals);
pos++;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|