org.geotools.expr
Class LiteralMathExpr

java.lang.Object
  extended byorg.geotools.expr.AbstractExpr
      extended byorg.geotools.expr.AbstractMathExpr
          extended byorg.geotools.expr.LiteralMathExpr
All Implemented Interfaces:
Expr, MathExpr, ResolvedExpr

public class LiteralMathExpr
extends AbstractMathExpr
implements ResolvedExpr


Field Summary
 
Fields inherited from class org.geotools.expr.AbstractMathExpr
factory
 
Constructor Summary
LiteralMathExpr(double number)
           
LiteralMathExpr(int number)
           
LiteralMathExpr(java.lang.Number number)
           
 
Method Summary
 Expression expression(FeatureType schema)
          Lazy binding of Expr into an Expression
 java.lang.Number getNumber()
           
 java.lang.Object getValue()
          Value of this LiteralMathExpr.
 double toDouble()
           
 
Methods inherited from class org.geotools.expr.AbstractMathExpr
add, add, add, and, bbox, between, between, between, divide, divide, divide, eq, eq, eq, eval, fid, fid, filter, fn, fn, fn, gt, gt, gt, gte, gte, gte, lt, lt, lt, lte, lte, lte, multiply, multiply, multiply, ne, ne, ne, not, notNull, or, reduce, resolve, resolve, subtract, subtract, subtract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.expr.Expr
and, bbox, between, eq, eval, fid, fid, filter, fn, fn, fn, gt, gte, lt, lte, ne, not, notNull, or, reduce, resolve, resolve
 

Constructor Detail

LiteralMathExpr

public LiteralMathExpr(int number)

LiteralMathExpr

public LiteralMathExpr(double number)

LiteralMathExpr

public LiteralMathExpr(java.lang.Number number)
Method Detail

expression

public Expression expression(FeatureType schema)
Description copied from interface: Expr
Lazy binding of Expr into an Expression

Specified by:
expression in interface Expr

getValue

public java.lang.Object getValue()
Value of this LiteralMathExpr.

Expr is doing its best to be immutable, Please don't duck around this idea.

Specified by:
getValue in interface ResolvedExpr
Returns:
number

getNumber

public java.lang.Number getNumber()

toDouble

public double toDouble()


Copyright © GeoTools. All Rights Reserved.