Package org.esa.snap.core.jexp
Interface Symbol
- 
- All Known Subinterfaces:
- Variable
 - All Known Implementing Classes:
- RasterDataSymbol,- SingleFlagSymbol
 
 public interface SymbolRepresents 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- Version:
- $Revision$ $Date$
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevalB(EvalEnv env)Evaluates this symbol to abooleanvalue.doubleevalD(EvalEnv env)Evaluates this symbol to adoublevalue.intevalI(EvalEnv env)Evaluates this symbol to anintvalue.StringevalS(EvalEnv env)Evaluates this symbol to aStringvalue.StringgetName()Gets the symbol's name.intgetRetType()Gets the symbol's return type.booleanisConst()
 
- 
- 
- 
Method Detail- 
getNameString getName() Gets the symbol's name.- Returns:
- the name, should never be null
 
 - 
getRetTypeint getRetType() Gets the symbol's return type.- Returns:
- the type, should always be one of the TYPE_X constants defined in theTermclass.
 
 - 
evalBboolean evalB(EvalEnv env) throws EvalException Evaluates this symbol to abooleanvalue.- Parameters:
- env- the application dependant environment.
- Returns:
- a booleanvalue
- Throws:
- EvalException- if the evaluation fails
 
 - 
evalIint evalI(EvalEnv env) throws EvalException Evaluates this symbol to anintvalue.- Parameters:
- env- the application dependant environment.
- Returns:
- an intvalue
- Throws:
- EvalException- if the evaluation fails
 
 - 
evalDdouble evalD(EvalEnv env) throws EvalException Evaluates this symbol to adoublevalue.- Parameters:
- env- the application dependant environment.
- Returns:
- a doublevalue
- Throws:
- EvalException- if the evaluation fails
 
 - 
evalSString evalS(EvalEnv env) throws EvalException Evaluates this symbol to aStringvalue.- Parameters:
- env- the application dependant environment.
- Returns:
- a doublevalue
- Throws:
- EvalException- if the evaluation fails
 
 - 
isConstboolean isConst() - Returns:
- true, if this symbol has a constant value with respect to any- EvalEnv, even- null.
 
 
- 
 
-