|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.course.condition.interpreter.ConditionInterpreter
public class ConditionInterpreter
Initial Date: Jan 27, 2004
| Field Summary | |
|---|---|
static java.lang.Integer |
INT_FALSE
static Integer(0) object |
static java.lang.Integer |
INT_TRUE
static Integer(1) object |
| Constructor Summary | |
|---|---|
ConditionInterpreter(UserCourseEnvironment userCourseEnv)
ConditionInterpreter interpretes course conditions. |
|
| Method Summary | |
|---|---|
float |
evaluateCalculation(java.lang.String calculation)
Evaluates a calculation. |
boolean |
evaluateCondition(Condition c)
Evaluates a condition. |
boolean |
evaluateCondition(java.lang.String condition)
Evaluates a condition. |
static void |
main(java.lang.String[] args)
Test method for condition interpreter using the dummy lu callback |
ConditionErrorMessage |
syntaxTestCalculation(java.lang.String expression)
Deprecated. TODO: remove as it is no longer referenced, except test? |
ConditionErrorMessage[] |
syntaxTestExpression(ConditionExpression condExpr)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Integer INT_TRUE
public static final java.lang.Integer INT_FALSE
| Constructor Detail |
|---|
public ConditionInterpreter(UserCourseEnvironment userCourseEnv)
userCourseEnv - | Method Detail |
|---|
public ConditionErrorMessage[] syntaxTestExpression(ConditionExpression condExpr)
expression -
public ConditionErrorMessage syntaxTestCalculation(java.lang.String expression)
expression -
public boolean evaluateCondition(Condition c)
c -
public boolean evaluateCondition(java.lang.String condition)
condition -
public float evaluateCalculation(java.lang.String calculation)
calculation -
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||