public interface Symbol
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
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isConst() |
String getName()
null
int getRetType()
TYPE_
X constants
defined in the Term
class.boolean evalB(EvalEnv env) throws EvalException
boolean
value.env
- the application dependant environment.boolean
valueEvalException
- if the evaluation failsint evalI(EvalEnv env) throws EvalException
int
value.env
- the application dependant environment.int
valueEvalException
- if the evaluation failsdouble evalD(EvalEnv env) throws EvalException
double
value.env
- the application dependant environment.double
valueEvalException
- if the evaluation failsString evalS(EvalEnv env) throws EvalException
String
value.env
- the application dependant environment.double
valueEvalException
- if the evaluation failsboolean isConst()
true
, if this symbol has a constant value with respect to any EvalEnv
, even null
.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.