public final class SingleFlagSymbol extends RasterDataSymbol
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
RasterDataSymbol.Sourcedata, GEOPHYSICAL, RAW| Constructor and Description |
|---|
SingleFlagSymbol(String symbolName,
RasterDataNode raster,
int flagMask) |
SingleFlagSymbol(String symbolName,
RasterDataNode raster,
int flagMask,
int flagValue) |
| Modifier and Type | Method and Description |
|---|---|
SingleFlagSymbol |
clone() |
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 |
getFlagValue()
Returns the flag value used by this symbol.
|
int |
getRetType()
Gets the symbol's return type.
|
public SingleFlagSymbol(String symbolName, RasterDataNode raster, int flagMask)
public SingleFlagSymbol(String symbolName, RasterDataNode raster, int flagMask, int flagValue)
public final int getRetType()
SymbolgetRetType in interface SymbolgetRetType in class RasterDataSymbolTYPE_X constants
defined in the Term class.public final int getFlagMask()
public final int getFlagValue()
public final boolean evalB(EvalEnv env) throws EvalException
Symbolboolean value.evalB in interface SymbolevalB in class RasterDataSymbolenv - the application dependant environment.boolean valueEvalException - if the evaluation failspublic final int evalI(EvalEnv env) throws EvalException
Symbolint value.evalI in interface SymbolevalI in class RasterDataSymbolenv - the application dependant environment.int valueEvalException - if the evaluation failspublic final double evalD(EvalEnv env) throws EvalException
Symboldouble value.evalD in interface SymbolevalD in class RasterDataSymbolenv - the application dependant environment.double valueEvalException - if the evaluation failspublic SingleFlagSymbol clone()
clone in class RasterDataSymbolCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.