@Test public void testExpressionWithTargetAndVariables() { Person person = new Person(1L, "Homer"); Map vars = new HashMap(); vars.put("lastName", "Simpson"); Expression exp = createExpression("name + ' ' + lastName"); assertEquals("Homer Simpson", exp.evaluate(person, vars)); }
public T evaluate(Object target) { return evaluate(target, null); }
AbstractExpression implements Expression<T>, Serializable, PortableObject { public T evaluate(Object target) { return evaluate(target, null); } }
AbstractExpression implements Expression<T>, Serializable, PortableObject { public T evaluate(Object target) { return evaluate(target, null); } protected  AbstractExpression(); protected  AbstractExpression(String expression); protected  AbstractExpression(InputStream expression); }
AbstractExpression implements Expression<T>, Serializable, PortableObject { public T evaluate(Object target) { return evaluate(target, null); } protected  AbstractExpression(); protected  AbstractExpression(String expression); protected  AbstractExpression(InputStream expression); T evaluate(Object target); void readExternal(PofReader reader); void writeExternal(PofWriter writer); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
AbstractExpression implements Expression<T>, Serializable, PortableObject { public T evaluate(Object target) { return evaluate(target, null); } protected  AbstractExpression(); protected  AbstractExpression(String expression); protected  AbstractExpression(InputStream expression); T evaluate(Object target); void readExternal(PofReader reader); void writeExternal(PofWriter writer); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }