Class EvaluationContext.PlainEvaluationContext
java.lang.Object
com.google.auto.value.processor.escapevelocity.EvaluationContext.PlainEvaluationContext
- All Implemented Interfaces:
EvaluationContext
- Enclosing interface:
EvaluationContext
public static class EvaluationContext.PlainEvaluationContext
extends Object
implements EvaluationContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface EvaluationContext
EvaluationContext.PlainEvaluationContext -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
vars
-
-
Constructor Details
-
PlainEvaluationContext
-
-
Method Details
-
getVar
- Specified by:
getVarin interfaceEvaluationContext
-
varIsDefined
- Specified by:
varIsDefinedin interfaceEvaluationContext
-
setVar
Description copied from interface:EvaluationContextSets the given variable to the given value.- Specified by:
setVarin interfaceEvaluationContext- Returns:
- a Runnable that will restore the variable to the value it had before. If the variable
was undefined before this method was executed, the Runnable will make it undefined again.
This allows us to restore the state of
$xafter#foreach ($x in ...).
-