Class IsStaticExpressionVisitor

Object
IsStaticExpressionVisitor
All Implemented Interfaces:
ExpressionVisitor

public class IsStaticExpressionVisitor extends Object implements ExpressionVisitor
Check if an expression is static (ie does not contain a PropertyName expression).

This visitor will "short-circuit" the moment it finds a PropertyName expression and will not need to visit the entire data structure.

Example:


 if( filter.accepts( IsStaticExpressionVisitor.VISITOR, null ) ){
     Color color = expression.evaulate( null, Color.class );
     ...
 }
 
Author:
Jody