Package | Description |
---|---|
org.esa.snap.core.datamodel |
Contains SNAP's central classes and interfaces used for an in-memory presentation
of remote sensing data products.
|
org.esa.snap.core.dataop.barithm | |
org.esa.snap.core.image |
Provides frequently used JAI
OpImage implementations and the
ImageManager utility class. |
org.esa.snap.core.jexp |
The JEXP API (JEXP = Java Expression Parser).
|
Modifier and Type | Method and Description |
---|---|
Term |
Product.parseExpression(String expression)
Parses a mathematical expression given as a text string.
|
Modifier and Type | Method and Description |
---|---|
Term[] |
RasterDataLoop.getTerms() |
static Term |
BandArithmetic.parseExpression(String expression,
Product contextProduct)
Parses the given expression.
|
static Term |
BandArithmetic.parseExpression(String expression,
Product[] products,
int contextProductIndex)
Parses the given expression.
|
Term |
RasterDataSymbolReplacer.visit(Term.Ref term) |
Modifier and Type | Method and Description |
---|---|
static boolean |
BandArithmetic.areRastersEqualInSize(Term term)
Determines whether all rasters which are referenced in a term are compatible.
|
static RasterDataSymbol[] |
BandArithmetic.getRefRasterDataSymbols(Term... terms)
Utility method which returns all raster data symbols referenced in a given compiled
band math expressions.
|
static RasterDataNode[] |
BandArithmetic.getRefRasters(Term... terms)
Utility method which returns all raster data nodes referenced in the given
compiled band math expressions.
|
Constructor and Description |
---|
RasterDataLoop(int offsetX,
int offsetY,
int regionWidth,
int regionHeight,
Term[] terms,
ProgressMonitor pm)
Creates an instance of this class for the given region and terms.
|
RasterDataLoop(RasterDataEvalEnv rasterDataEvalEnv,
Term[] terms,
ProgressMonitor pm)
Creates an instance of this class for the given region and terms.
|
Modifier and Type | Method and Description |
---|---|
static Term |
VirtualBandOpImage.parseExpression(String expression,
int contextSourceIndex,
Product... sources) |
static Term |
VirtualBandOpImage.parseExpression(String expression,
Product source) |
Modifier and Type | Method and Description |
---|---|
static VirtualBandOpImage.Builder |
VirtualBandOpImage.builder(Term term) |
Constructor and Description |
---|
Builder(Term term) |
Modifier and Type | Class and Description |
---|---|
static class |
Term.Add
The numerical ADD operation:
n-term
+ n-term
|
static class |
Term.AndB
The logical AND operation:
b-term
&& b-term
|
static class |
Term.AndI
The bitwise AND operation:
i-term
& i-term
|
static class |
Term.Assign
The assignment operation
variable-ref-term
= term
|
static class |
Term.Binary |
static class |
Term.BinaryB
An abstract binary (= 2 operands) operation.
|
static class |
Term.BinaryI
An abstract binary (= 2 operands) operation with a return type
of
int . |
static class |
Term.BinaryN
An abstract binary (= 2 operands) operation with a numeric return type.
|
static class |
Term.Call
A call of a (or reference to a)
. |
static class |
Term.Cond
The conditional operation
b-term
? |
static class |
Term.Const
A boolean constant, e.g.
|
static class |
Term.ConstB
A boolean constant, e.g.
|
static class |
Term.ConstD
A floating point constant, e.g.
|
static class |
Term.ConstI
An integer constant, e.g.
|
static class |
Term.ConstS |
static class |
Term.Div
The numerical DIV operation:
n-term
/ n-term
|
static class |
Term.EqB
The boolean EQ operation:
b-term
== b-term
|
static class |
Term.EqD
The double EQ operation:
d-term
== d-term
|
static class |
Term.EqI
The integer EQ operation:
i-term
== i-term
|
static class |
Term.GeD
The double GE operation:
d-term
>= d-term
|
static class |
Term.GeI
The integer GE operation:
i-term
>= i-term
|
static class |
Term.GtD
The double GT operation:
d-term
> d-term
|
static class |
Term.GtI
The integer GT operation:
i-term
> i-term
|
static class |
Term.LeD
The double LE operation:
d-term
<= d-term
|
static class |
Term.LeI
The integer LE operation:
i-term
<= i-term
|
static class |
Term.LtD
The double LT operation:
d-term
< d-term
|
static class |
Term.LtI
The integer LT operation:
i-term
< i-term
|
static class |
Term.Mod
The numerical MOD (modulo) operation:
n-term
% n-term
|
static class |
Term.Mul
The numerical MUL operation:
n-term
* n-term
|
static class |
Term.Neg
The numerical NEG operation:
- d-term
|
static class |
Term.NEqB
The boolean NEQ operation:
b-term
! |
static class |
Term.NEqD
The double NEQ operation:
d-term
! |
static class |
Term.NEqI
The integer NEQ operation:
i-term
! |
static class |
Term.NotB
The logical NOT operation
! |
static class |
Term.NotI
The bitwise NOT operation:
~ i-term
|
static class |
Term.Op
An abstract operation.
|
static class |
Term.OrB
The logical OR operation:
b-term
|| b-term
|
static class |
Term.OrI
The bitwise OR operation:
i-term
¦ i-term
|
static class |
Term.Ref
A reference to a
. |
static class |
Term.Sub
The numerical SUB operation:
n-term
- n-term
|
static class |
Term.Unary
An abstract unary (= 1 operand) operation.
|
static class |
Term.UnaryB
An abstract unary (= 1 operand) operation with return type of
boolean . |
static class |
Term.UnaryI
An abstract unary (= 1 operand) operation with return type of
int . |
static class |
Term.UnaryN
An abstract unary (= 1 operand) operation with a numeric return type.
|
static class |
Term.XOrI
The bitwise XOR operation:
i-term
^ i-term
|
Modifier and Type | Field and Description |
---|---|
protected Term |
Term.Unary.arg |
protected Term |
Term.Binary.arg1 |
protected Term |
Term.Cond.arg1 |
protected Term |
Term.Binary.arg2 |
protected Term |
Term.Cond.arg2 |
protected Term |
Term.Cond.arg3 |
protected Term[] |
Term.Call.args |
protected Term[] |
Term.Op.args |
Modifier and Type | Method and Description |
---|---|
default Term |
TermTransformer.apply(Term term)
Applies the transformer to the given term and returns the transformed term.
|
Term |
Term.Call.getArg() |
Term |
Term.Op.getArg() |
Term |
Term.Call.getArg(int index) |
Term |
Term.Op.getArg(int index) |
Term[] |
Term.Call.getArgs() |
Term[] |
Term.Op.getArgs() |
Term[] |
Term.getChildren()
Returns an array of terms which are children of this term.
|
Term[] |
Term.Call.getChildren() |
Term[] |
Term.Op.getChildren() |
Term |
Parser.parse(String code)
Parses the expression given in the code string.
|
Term |
Parser.parse(String code,
Namespace namespace)
Parses the expression given in the code string.
|
Term |
AbstractTermTransformer.visit(Term.Add term) |
Term |
AbstractTermTransformer.visit(Term.AndB term) |
Term |
AbstractTermTransformer.visit(Term.AndI term) |
Term |
AbstractTermTransformer.visit(Term.Assign term) |
Term |
AbstractTermTransformer.visit(Term.Call term) |
Term |
AbstractTermTransformer.visit(Term.Cond term) |
Term |
AbstractTermTransformer.visit(Term.ConstB term) |
Term |
AbstractTermTransformer.visit(Term.ConstD term) |
Term |
AbstractTermTransformer.visit(Term.ConstI term) |
Term |
AbstractTermTransformer.visit(Term.ConstS term) |
Term |
AbstractTermTransformer.visit(Term.Div term) |
Term |
AbstractTermTransformer.visit(Term.EqB term) |
Term |
AbstractTermTransformer.visit(Term.EqD term) |
Term |
AbstractTermTransformer.visit(Term.EqI term) |
Term |
AbstractTermTransformer.visit(Term.GeD term) |
Term |
AbstractTermTransformer.visit(Term.GeI term) |
Term |
AbstractTermTransformer.visit(Term.GtD term) |
Term |
AbstractTermTransformer.visit(Term.GtI term) |
Term |
AbstractTermTransformer.visit(Term.LeD term) |
Term |
AbstractTermTransformer.visit(Term.LeI term) |
Term |
AbstractTermTransformer.visit(Term.LtD term) |
Term |
AbstractTermTransformer.visit(Term.LtI term) |
Term |
AbstractTermTransformer.visit(Term.Mod term) |
Term |
AbstractTermTransformer.visit(Term.Mul term) |
Term |
AbstractTermTransformer.visit(Term.Neg term) |
Term |
AbstractTermTransformer.visit(Term.NEqB term) |
Term |
AbstractTermTransformer.visit(Term.NEqD term) |
Term |
AbstractTermTransformer.visit(Term.NEqI term) |
Term |
AbstractTermTransformer.visit(Term.NotB term) |
Term |
AbstractTermTransformer.visit(Term.NotI term) |
Term |
AbstractTermTransformer.visit(Term.OrB term) |
Term |
AbstractTermTransformer.visit(Term.OrI term) |
Term |
AbstractTermTransformer.visit(Term.Ref term) |
Term |
AbstractTermTransformer.visit(Term.Sub term) |
Term |
AbstractTermTransformer.visit(Term.XOrI term) |
Modifier and Type | Method and Description |
---|---|
default Term |
TermTransformer.apply(Term term)
Applies the transformer to the given term and returns the transformed term.
|
abstract int |
Term.compare(Term other) |
int |
Term.Const.compare(Term other) |
int |
Term.Ref.compare(Term other) |
int |
Term.Call.compare(Term other) |
int |
Term.Op.compare(Term other) |
boolean |
Function.evalB(EvalEnv env,
Term[] args)
Evaluates this function to a
boolean value. |
double |
Function.evalD(EvalEnv env,
Term[] args)
Evaluates this function to a
double value. |
int |
Function.evalI(EvalEnv env,
Term[] args)
Evaluates this function to an
int value. |
boolean |
Function.isConst(Term[] args) |
Function |
Namespace.resolveFunction(String name,
Term[] args)
Resolves the given name and argument list in order to find a matching function.
|
Constructor and Description |
---|
Add(int type,
Term arg1,
Term arg2) |
Add(Term arg1,
Term arg2) |
AndB(Term arg1,
Term arg2) |
AndI(Term arg1,
Term arg2) |
Assign(Term arg1,
Term arg2) |
Binary(String name,
int type,
Term arg1,
Term arg2) |
BinaryB(String name,
Term arg1,
Term arg2) |
BinaryI(String name,
Term arg1,
Term arg2) |
BinaryN(String name,
int type,
Term arg1,
Term arg2) |
Call(Function function,
Term... args) |
Cond(int type,
Term arg1,
Term arg2,
Term arg3) |
Div(int type,
Term arg1,
Term arg2) |
Div(Term arg1,
Term arg2) |
EqB(Term arg1,
Term arg2) |
EqD(Term arg1,
Term arg2) |
EqI(Term arg1,
Term arg2) |
GeD(Term arg1,
Term arg2) |
GeI(Term arg1,
Term arg2) |
GtD(Term arg1,
Term arg2) |
GtI(Term arg1,
Term arg2) |
LeD(Term arg1,
Term arg2) |
LeI(Term arg1,
Term arg2) |
LtD(Term arg1,
Term arg2) |
LtI(Term arg1,
Term arg2) |
Mod(int type,
Term arg1,
Term arg2) |
Mod(Term arg1,
Term arg2) |
Mul(int type,
Term arg1,
Term arg2) |
Mul(Term arg1,
Term arg2) |
Neg(int type,
Term arg) |
Neg(Term arg) |
NEqB(Term arg1,
Term arg2) |
NEqD(Term arg1,
Term arg2) |
NEqI(Term arg1,
Term arg2) |
NotB(Term arg) |
NotI(Term arg) |
Op(String name,
int type,
Term[] args) |
OrB(Term arg1,
Term arg2) |
OrI(Term arg1,
Term arg2) |
Sub(int type,
Term arg1,
Term arg2) |
Sub(Term arg1,
Term arg2) |
Unary(String name,
int type,
Term arg) |
UnaryB(String name,
Term arg) |
UnaryI(String name,
Term arg) |
UnaryN(String name,
int type,
Term arg) |
XOrI(Term arg1,
Term arg2) |
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.