The Expressions class holds static methods for creating new Expressions (Expression, Color, Function, Property).
import static geoscript.filter.Expressions.* Expression e = expression(12) Property p = property("NAME")
Constructor and description |
---|
Expressions
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.awt.Color |
color(java.lang.Object value) Create a new Color Expression from a color convertable object. |
|
static Expression |
expression(Expression expression) Create a new Expression from an existing Expression
|
|
static Expression |
expression(Expression expression) Create a new Expression from a GeoTools Expression
|
|
static Expression |
expression(java.lang.Object value) Create a new Expression from a value
|
|
static Function |
function(Function function) Create a new Function from a GeoTools Function
|
|
static Function |
function(java.lang.String cql) Create a new Function from a CQL statement
|
|
static Function |
function(java.lang.String cql, Closure closure) Create a new Function from a Closure
|
|
static Property |
property(java.lang.String fieldName) Create a new Property Expression from a Field name
|
|
static Property |
property(Field field) Create a new Property Expression from a Field
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new Color Expression from a color convertable object.
value
- A value convertable to a ColorCreate a new Expression from an existing Expression
expression
- The Expression.Create a new Expression from a GeoTools Expression
expression
- The GeoTools ExpressionCreate a new Expression from a value
value
- The vauleCreate a new Function from a GeoTools Function
function
- A GeoTools FunctionCreate a new Function from a CQL statement
cql
- A CQL statementCreate a new Function from a Closure
cql
- The CQL statementclosure
- A ClosureCreate a new Property Expression from a Field name
fieldName
- The Field name