public class RasterDataSymbol extends Object implements Symbol, Cloneable
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 | Class and Description |
---|---|
static class |
RasterDataSymbol.Source
Lists possible source image types.
|
Modifier and Type | Field and Description |
---|---|
protected ProductData |
data |
static RasterDataSymbol.Source |
GEOPHYSICAL |
static RasterDataSymbol.Source |
RAW |
Constructor and Description |
---|
RasterDataSymbol(String symbolName,
Mask mask) |
RasterDataSymbol(String symbolName,
RasterDataNode raster,
RasterDataSymbol.Source source) |
Modifier and Type | Method and Description |
---|---|
RasterDataSymbol |
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. |
String |
evalS(EvalEnv env)
Evaluates this symbol to a
String value. |
String |
getName()
Gets the symbol's name.
|
RasterDataNode |
getRaster() |
int |
getRetType()
Gets the symbol's return type.
|
RasterDataSymbol.Source |
getSource() |
boolean |
isConst() |
void |
setData(Object data) |
public static final RasterDataSymbol.Source RAW
public static final RasterDataSymbol.Source GEOPHYSICAL
protected ProductData data
public RasterDataSymbol(String symbolName, RasterDataNode raster, RasterDataSymbol.Source source)
public int getRetType()
Symbol
getRetType
in interface Symbol
TYPE_
X constants
defined in the Term
class.public boolean isConst()
public RasterDataSymbol.Source getSource()
public RasterDataNode getRaster()
public void setData(Object data)
public boolean evalB(EvalEnv env) throws EvalException
Symbol
boolean
value.evalB
in interface Symbol
env
- the application dependant environment.boolean
valueEvalException
- if the evaluation failspublic int evalI(EvalEnv env) throws EvalException
Symbol
int
value.evalI
in interface Symbol
env
- the application dependant environment.int
valueEvalException
- if the evaluation failspublic double evalD(EvalEnv env) throws EvalException
Symbol
double
value.evalD
in interface Symbol
env
- the application dependant environment.double
valueEvalException
- if the evaluation failspublic String evalS(EvalEnv env) throws EvalException
Symbol
String
value.evalS
in interface Symbol
env
- the application dependant environment.double
valueEvalException
- if the evaluation failspublic RasterDataSymbol clone()
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.