|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.expression.Expression
public abstract class Expression
This is the base class of every variety of expression.
Constructor Summary | |
---|---|
Expression()
|
Method Summary | |
---|---|
abstract Value |
evaluate(Runtime rt)
|
Value |
evaluateToClass(Runtime rt,
java.lang.Class<?> type)
The method is used to require that the expression evaluate to a particular data type. |
abstract java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Expression()
Method Detail |
---|
public abstract Value evaluate(Runtime rt) throws EvaluationException
EvaluationException
public abstract java.lang.String toString()
toString
in class java.lang.Object
public Value evaluateToClass(Runtime rt, java.lang.Class<?> type) throws EvaluationException
rt
- the current runtime environmenttype
- the class required
EvaluationException
- if evaluation doesn't produce the right class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |