|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.dataop.barithm.RasterDataSymbol
org.esa.beam.framework.dataop.barithm.SingleFlagSymbol
public final class SingleFlagSymbol
Represents a read-only symbol. A symbol can be a named constant or variable. It has a return type an can be evaluated. This class represents a specific implementation for flag expressions.
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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.esa.beam.framework.dataop.barithm.RasterDataSymbol |
|---|
RasterDataSymbol.Source |
| Field Summary |
|---|
| Fields inherited from class org.esa.beam.framework.dataop.barithm.RasterDataSymbol |
|---|
data, GEOPHYSICAL, RAW |
| Constructor Summary | |
|---|---|
SingleFlagSymbol(String symbolName,
RasterDataNode raster,
int flagMask)
|
|
| 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. |
int |
getFlagMask()
Returns the flag mask used by this symbol. |
int |
getRetType()
Gets the symbol's return type. |
| Methods inherited from class org.esa.beam.framework.dataop.barithm.RasterDataSymbol |
|---|
evalS, getName, getRaster, getSource, setData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleFlagSymbol(String symbolName,
RasterDataNode raster,
int flagMask)
| Method Detail |
|---|
public final int getRetType()
Symbol
getRetType in interface SymbolgetRetType in class RasterDataSymbolTYPE_X constants
defined in the Term class.public final int getFlagMask()
public final boolean evalB(EvalEnv env)
throws EvalException
Symbolboolean value.
evalB in interface SymbolevalB in class RasterDataSymbolenv - the application dependant environment.
boolean value
EvalException - if the evaluation fails
public final int evalI(EvalEnv env)
throws EvalException
Symbolint value.
evalI in interface SymbolevalI in class RasterDataSymbolenv - the application dependant environment.
int value
EvalException - if the evaluation fails
public final double evalD(EvalEnv env)
throws EvalException
Symboldouble value.
evalD in interface SymbolevalD in class RasterDataSymbolenv - 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 | |||||||||