|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.commons.expression.ExpressionAdapter<E,E>
org.databene.commons.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.commons.expression.ExpressionAdapter |
|---|
source |
| Constructor Summary | |
|---|---|
CachedExpression(org.databene.commons.Expression<E> realExpression)
|
|
| Method Summary | |
|---|---|
E |
evaluate(org.databene.commons.Context context)
|
void |
invalidate()
|
| Methods inherited from class org.databene.commons.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.commons.Expression<E> realExpression)
| Method Detail |
|---|
public E evaluate(org.databene.commons.Context context)
evaluate in interface org.databene.commons.Expression<E>evaluate in class org.databene.commons.expression.ExpressionProxy<E>public void invalidate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||