|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.FunctionImpl
public class FunctionImpl
Default implementation of a Function; you may extend this class to implement specific functionality.
Field Summary |
---|
Fields inherited from interface org.opengis.filter.expression.Expression |
---|
NIL |
Constructor Summary | |
---|---|
FunctionImpl()
|
Method Summary | |
---|---|
java.lang.Object |
accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
|
java.lang.Object |
evaluate(java.lang.Object object)
Default implementation simply returns the fallbackValue. |
org.opengis.filter.expression.Literal |
getFallbackValue()
|
java.lang.String |
getName()
Gets the name of this function. |
java.util.List<org.opengis.filter.expression.Expression> |
getParameters()
Returns the function parameters. |
void |
setFallbackValue(org.opengis.filter.expression.Literal fallbackValue)
|
void |
setName(java.lang.String name)
Sets the name of the function. |
void |
setParameters(java.util.List<org.opengis.filter.expression.Expression> params)
Sets the function parameters. |
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract |
---|
eval, eval, evaluate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.filter.expression.Expression |
---|
evaluate |
Constructor Detail |
---|
public FunctionImpl()
Method Detail |
---|
public java.lang.String getName()
getName
in interface org.opengis.filter.expression.Function
public void setName(java.lang.String name)
public java.util.List<org.opengis.filter.expression.Expression> getParameters()
getParameters
in interface org.opengis.filter.expression.Function
public java.lang.Object evaluate(java.lang.Object object)
Please override this method to produce a value based on the provided arguments.
evaluate
in interface org.opengis.filter.expression.Expression
evaluate
in class ExpressionAbstract
object
- Object being evaluated; often a Feature
public void setParameters(java.util.List<org.opengis.filter.expression.Expression> params)
public void setFallbackValue(org.opengis.filter.expression.Literal fallbackValue)
public org.opengis.filter.expression.Literal getFallbackValue()
getFallbackValue
in interface org.opengis.filter.expression.Function
public java.lang.Object accept(org.opengis.filter.expression.ExpressionVisitor visitor, java.lang.Object extraData)
accept
in interface org.opengis.filter.expression.Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |