public abstract class ExpressionAbstract implements Expression {
    
    /** Subclass should overide, default implementation returns null */
    public Object evaluate(Object object) {
        return null;
    }
    
    public final Object evaluate(Object object, Class context) {
        Value value = new Value( evaluate( object ) );
        return value.value( context );
    }
...

Can we lift "final" from the second evaluate method? It seems that some 
implementions may want to return different results based on the return 
type, looking like this:

public Object evaluate(Object object) {
  return evaluate(object, String.class);
}

public Object evaluate(Object object, Class context) {
  ... < real code here >
}

Cheers,
Cory.

-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to