|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.pba.rbac.TimeInterpreter
This class interprets comparisons of Time values in IF-statements.
Constructor Summary | |
protected |
TimeInterpreter(int mode)
|
Method Summary | |
java.lang.String |
canEvaluate(Term[] t)
This method tells if the Terms can be evaluated by this interpreter. |
java.lang.Object |
evaluate(Environment env,
Term[] t)
This method evaluates the expression specified by an array of Terms, given the Environment. |
static void |
register()
This method registers as an interpreter for specific comparison operators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TimeInterpreter(int mode)
Method Detail |
public static void register()
public java.lang.String canEvaluate(Term[] t)
canEvaluate
in interface Interpreter
t
- - the array of Terms to evaluate
public java.lang.Object evaluate(Environment env, Term[] t) throws EvaluationException
evaluate
in interface Interpreter
env
- - the Environment of evaluationt
- - the array of Terms, each containing the actual value;
it must contain only 2 elements, both of type Time.TIME_TYPE
EvaluationException,
- if the expression cannot be evaluated
EvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |