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.Source
data, 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()
Symbol
getRetType
in interface Symbol
getRetType
in class RasterDataSymbol
TYPE_
X constants
defined in the Term
class.public final int getFlagMask()
public final int getFlagValue()
public final boolean evalB(EvalEnv env) throws EvalException
Symbol
boolean
value.evalB
in interface Symbol
evalB
in class RasterDataSymbol
env
- the application dependant environment.boolean
valueEvalException
- if the evaluation failspublic final int evalI(EvalEnv env) throws EvalException
Symbol
int
value.evalI
in interface Symbol
evalI
in class RasterDataSymbol
env
- the application dependant environment.int
valueEvalException
- if the evaluation failspublic final double evalD(EvalEnv env) throws EvalException
Symbol
double
value.evalD
in interface Symbol
evalD
in class RasterDataSymbol
env
- the application dependant environment.double
valueEvalException
- if the evaluation failspublic SingleFlagSymbol clone()
clone
in class RasterDataSymbol
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.