Optimizer Interface

com.bea.p13n.expression
Optimizer Interface

public interface Optimizer

The Optimizer interface is implemented by the class that can optimize an Expression.

Method Summary

public void
optimize(Expression expression)
Performs an optimization on the supplied expression.
public void
reset()
Resets the state of the optimizer.

Method Detail

optimize(Expression) Method

public void optimize(Expression expression)
throws ExpressionException
Performs an optimization on the supplied expression. The expression is modified (rewritten) in place.

Parameters

expression
the expression to be optimized.

Exceptions

ExpressionException
if an error occurs during optimization of the supplied expression.

reset() Method

public void reset()
Resets the state of the optimizer.