Package org.geotools.filter.visitor
Class DefaultExpressionVisitor
Object
DefaultExpressionVisitor
- All Implemented Interfaces:
ExpressionVisitor
- Direct Known Subclasses:
FeatureChainedAttributeVisitor
Abstract implementation of ExpressionVisitor that simply walks the data structure.
This class implements the full ExpressionVisitor interface and will visit every Filter member of an Expression object. This class performs no actions and is not intended to be used directly, instead extend it and overide the methods for the Expression type you are interested in. Remember to call the super method if you want to ensure that the entire expression tree is still visited.
FilterVisitor allProperties = new DefaultExpressionVisitor(){
public Object visit( PropertyName expr, Object data ) {
Set set = (Set) data;
set.addAll(expr.getPropertyName());
return set;
}
};
Set set = (Set) allProperties.accept(allFids, new HashSet());
- Author:
- Jody
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisit(NilExpression expression, Object data) Used to visit a Expression.NIL, also called fornullwhere an expression is expected.visit(PropertyName expression, Object data)
-
Constructor Details
-
DefaultExpressionVisitor
public DefaultExpressionVisitor()
-
-
Method Details
-
visit
Description copied from interface:ExpressionVisitorUsed to visit a Expression.NIL, also called fornullwhere 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:
visitin interfaceExpressionVisitor- Returns:
- implementation specific
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-
visit
- Specified by:
visitin interfaceExpressionVisitor
-