org.geotools.filter.expression
Class AbstractExpressionVisitor

Object
  extended by AbstractExpressionVisitor
All Implemented Interfaces:
ExpressionVisitor

public class AbstractExpressionVisitor
extends Object
implements ExpressionVisitor

Empty "abstract" implementation of ExpressionVisitor. Subclasses should override desired methods.

Author:
Cory Horner, Refractions Research Inc.

Constructor Summary
AbstractExpressionVisitor()
           
 
Method Summary
 Object visit(Add expr, Object extraData)
           
 Object visit(Divide expr, Object extraData)
           
 Object visit(Function expr, Object extraData)
           
 Object visit(Literal expr, Object extraData)
           
 Object visit(Multiply expr, Object extraData)
           
 Object visit(NilExpression expr, Object extraData)
          Used to visit a Expression.NIL, also called for null where an expression is expected.
 Object visit(PropertyName expr, Object extraData)
           
 Object visit(Subtract expr, Object extraData)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExpressionVisitor

public AbstractExpressionVisitor()
Method Detail

visit

public Object visit(NilExpression expr,
                    Object extraData)
Description copied from interface: ExpressionVisitor
Used to visit a Expression.NIL, also called for null where an expression is expected.

This is particularly useful when doing data transformations, as an example when using a StyleSymbolizer Expression.NIL can be used to represent the default stroke color.

Specified by:
visit in interface ExpressionVisitor
Returns:
implementation specific

visit

public Object visit(Add expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor

visit

public Object visit(Divide expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor

visit

public Object visit(Function expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor

visit

public Object visit(Literal expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor

visit

public Object visit(Multiply expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor

visit

public Object visit(PropertyName expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor

visit

public Object visit(Subtract expr,
                    Object extraData)
Specified by:
visit in interface ExpressionVisitor


Copyright © 1996-2014 Geotools. All Rights Reserved.