com.didana.codecontract.core
Class Expression

java.lang.Object
  extended by com.didana.codecontract.core.Expression

public class Expression
extends java.lang.Object

The class represents a single contract test defined as precondition, postcondition or invariant. The expressionString String must be a valid JEXL expression evaluating to true or false at runtime.

Author:
Diana Berberova

Constructor Summary
Expression(java.lang.String expressionString)
           
 
Method Summary
 boolean evaluate(org.apache.commons.jexl.JexlContext jexlContext)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expression

public Expression(java.lang.String expressionString)
Method Detail

evaluate

public boolean evaluate(org.apache.commons.jexl.JexlContext jexlContext)