com.miginfocom.util.expression
Interface Expression

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AndExpression, CompositeExpression, LogicalExpression, NandExpression, OrExpression, PropertyExpression, StaticExpression, XorExpression

public interface Expression
extends java.io.Serializable

A generic interface that denotes an expression that can be evaluated to true or false.


Method Summary
 boolean evaluate(PropertyProvider provider)
          Returns whether the expression validates to true.
 

Method Detail

evaluate

boolean evaluate(PropertyProvider provider)
Returns whether the expression validates to true.

Parameters:
provider - The object that is to give the value for the property name. It's PropertyProvider.getProperty(com.miginfocom.util.PropertyKey) will be called with propName.

Note! This "callback" object is only in a valid state to get the property during this method call.

Subclasses may disregard this object altogether to have some arbitrary evaluation logic.

Returns:
If the propNameValue evaluates to true depending on operation and propValue.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.