Package org.mvel2.optimizers
Interface OptimizerHook
-
public interface OptimizerHook
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Accessor
generateAccessor(AccessorOptimizer optimizer)
The optimizer should delegate back to the hook through this method, passing an instance of itself in the current state.boolean
isOptimizerSupported(java.lang.Class<? extends AccessorOptimizer> optimizer)
Should answer back whether or not this hook understands how to work with the current optimizer.
-
-
-
Method Detail
-
isOptimizerSupported
boolean isOptimizerSupported(java.lang.Class<? extends AccessorOptimizer> optimizer)
Should answer back whether or not this hook understands how to work with the current optimizer.- Parameters:
optimizer
- - class type of the current optimizer being used- Returns:
- boolean
-
generateAccessor
Accessor generateAccessor(AccessorOptimizer optimizer)
The optimizer should delegate back to the hook through this method, passing an instance of itself in the current state.- Parameters:
optimizer
- - instance of optimizer- Returns:
- boolean
-
-