|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.script.expression.ExpressionAdapter<E,E>
org.databene.script.expression.ExpressionProxy<E>
org.databene.benerator.engine.expression.CachedExpression<E>
public class CachedExpression<E>
Caches the result of another expression and returns it on subsequent calls
without evaluating the other expression again. The cache can be invalidated
by calling the invalidate()
method.
Created: 21.10.2009 14:42:15
Field Summary |
---|
Fields inherited from class org.databene.script.expression.ExpressionAdapter |
---|
source |
Constructor Summary | |
---|---|
CachedExpression(org.databene.script.Expression<E> realExpression)
|
Method Summary | |
---|---|
E |
evaluate(org.databene.commons.Context context)
|
void |
invalidate()
|
Methods inherited from class org.databene.script.expression.ExpressionAdapter |
---|
isConstant |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedExpression(org.databene.script.Expression<E> realExpression)
Method Detail |
---|
public E evaluate(org.databene.commons.Context context)
evaluate
in interface org.databene.script.Expression<E>
evaluate
in class org.databene.script.expression.ExpressionProxy<E>
public void invalidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |