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 com.google.auto.value.processor.escapevelocity.EvaluationContext
EvaluationContext.PlainEvaluationContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
vars
-
-
Constructor Details
-
PlainEvaluationContext
-
-
Method Details
-
getVar
- Specified by:
getVar
in interfaceEvaluationContext
-
varIsDefined
- Specified by:
varIsDefined
in interfaceEvaluationContext
-
setVar
Description copied from interface:EvaluationContext
Sets the given variable to the given value.- Specified by:
setVar
in 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
$x
after#foreach ($x in ...)
.
-