|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Symbol
Represents a read-only symbol. A symbol can be a named constant or variable. It has a return type an can be evaluated.
Within an expression, a reference to a symbol is created if the parser
encounters a name and this name can be resolved through the parser's current namespace.
The resulting term in this case is an instance of .
Term.Ref
| Method Summary | |
|---|---|
boolean |
evalB(EvalEnv env)
Evaluates this symbol to a boolean value. |
double |
evalD(EvalEnv env)
Evaluates this symbol to a double value. |
int |
evalI(EvalEnv env)
Evaluates this symbol to an int value. |
String |
evalS(EvalEnv env)
Evaluates this symbol to a String value. |
String |
getName()
Gets the symbol's name. |
int |
getRetType()
Gets the symbol's return type. |
| Method Detail |
|---|
String getName()
nullint getRetType()
TYPE_X constants
defined in the Term class.
boolean evalB(EvalEnv env)
throws EvalException
boolean value.
env - the application dependant environment.
boolean value
EvalException - if the evaluation fails
int evalI(EvalEnv env)
throws EvalException
int value.
env - the application dependant environment.
int value
EvalException - if the evaluation fails
double evalD(EvalEnv env)
throws EvalException
double value.
env - the application dependant environment.
double value
EvalException - if the evaluation fails
String evalS(EvalEnv env)
throws EvalException
String value.
env - the application dependant environment.
double value
EvalException - if the evaluation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||