|
||||||||||
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.DefaultExpression
org.geotools.filter.FunctionExpressionImpl
public abstract class FunctionExpressionImpl
Abstract class for a function expression implementation
Field Summary | |
---|---|
protected org.opengis.filter.expression.Literal |
fallback
|
protected java.lang.String |
name
function name |
protected java.util.List |
params
function params |
Fields inherited from class org.geotools.filter.DefaultExpression |
---|
expressionType, permissiveConstruction |
Fields inherited from interface org.geotools.filter.ExpressionType |
---|
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT |
Fields inherited from interface org.opengis.filter.expression.Expression |
---|
NIL |
Constructor Summary | |
---|---|
protected |
FunctionExpressionImpl(java.lang.String name)
|
protected |
FunctionExpressionImpl(java.lang.String name,
org.opengis.filter.expression.Literal fallback)
Creates a new instance of FunctionExpression |
Method Summary | |
---|---|
java.lang.Object |
accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
|
boolean |
equals(java.lang.Object obj)
|
abstract int |
getArgCount()
Gets the number of arguments that are set. |
Expression[] |
getArgs()
Deprecated. use getParameters() . |
protected org.opengis.filter.expression.Expression |
getExpression(int index)
Utility method for subclasses to ask for an argument at a given index |
org.opengis.filter.expression.Literal |
getFallbackValue()
|
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
java.lang.String |
getName()
Gets the name of this function. |
java.util.List |
getParameters()
Returns the function parameters. |
short |
getType()
Gets the type of this expression. |
void |
setArgs(Expression[] args)
Deprecated. use setParameters(List) |
void |
setFallbackValue(org.opengis.filter.expression.Literal fallback)
|
void |
setName(java.lang.String name)
Sets the name of the function. |
void |
setParameters(java.util.List params)
Sets the function parameters. |
java.lang.String |
toString()
Creates a String representation of this Function with the function name and the arguments. |
Methods inherited from class org.geotools.filter.DefaultExpression |
---|
accept, evaluate, evaluate, getValue, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression |
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract |
---|
eval, eval, evaluate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.geotools.filter.Expression |
---|
accept, evaluate, getValue |
Methods inherited from interface org.opengis.filter.expression.Expression |
---|
evaluate, evaluate |
Field Detail |
---|
protected java.lang.String name
protected java.util.List params
protected org.opengis.filter.expression.Literal fallback
Constructor Detail |
---|
protected FunctionExpressionImpl(java.lang.String name)
protected FunctionExpressionImpl(java.lang.String name, org.opengis.filter.expression.Literal fallback)
Method Detail |
---|
public short getType()
getType
in interface FunctionExpression
getType
in class DefaultExpression
public java.lang.String getName()
getName
in interface FunctionExpression
getName
in interface org.opengis.filter.expression.Function
public void setName(java.lang.String name)
public org.opengis.filter.expression.Literal getFallbackValue()
getFallbackValue
in interface org.opengis.filter.expression.Function
public void setFallbackValue(org.opengis.filter.expression.Literal fallback)
public java.util.List getParameters()
getParameters
in interface org.opengis.filter.expression.Function
public void setParameters(java.util.List params)
setParameters
in interface FunctionExpression
public Expression[] getArgs()
getParameters()
.
getArgs
in interface FunctionExpression
public void setArgs(Expression[] args)
setParameters(List)
setArgs
in interface FunctionExpression
args
- an array of expressions to be evaluated.public abstract int getArgCount()
getArgCount
in interface FunctionExpression
public java.lang.Object accept(org.opengis.filter.expression.ExpressionVisitor visitor, java.lang.Object extraData)
accept
in interface org.opengis.filter.expression.Expression
Expression.accept(ExpressionVisitor, Object)
public java.util.Map getImplementationHints()
getImplementationHints
in interface Factory
public java.lang.String toString()
toString
in class java.lang.Object
protected org.opengis.filter.expression.Expression getExpression(int index)
index
-
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |