Is there an easy way to write a FilterVisitor that looks at all Filters/Expressions passed to it regardless of type? This would allow for visitors that returned all Filters of a specified type (like Intersects or even SpatialOperator) or return all Filters that reference a specified property name.
If the answer is, "No, not without overriding every method in DefaultFilterVisitor", then I propose that DefaultFilterVisitor have two methods added to it - preVisit and postVisit. protected Object preVisit(Object o, Object data) { return data; } protected Object postVisit(Object o, Object data) { return data; } all other calls (except visitNullFilter) invoke these prior to and after doing any other work. If folks would rather such functionality not be in DefaultFilterVisitor itself, then I have a subclass that I'd like to contribute which extends DefaultFilterVisitor with these methods. I can also contribute the two visitors I used as examples above - FindType and FindPropertyUsage. -- View this message in context: http://n2.nabble.com/Generic-FilterVisitor-visit-method-tp4792848p4792848.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users