#set directives and during the execution of #foreach and macro
calls. The macros start out with the ones that were defined in the root Template and may
be supplemented by nested templates produced by #parse directives encountered in the
root template or in nested templates.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public Object | |
| public ImmutableSet | |
| public Runnable | 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 ...).Sets the given variable to the given value. |
| public boolean |
| getMacros | back to summary |
|---|---|
| public Map Returns a modifiable mapping from macro names to macros. Initially this map starts off with the
macros that were defined in the root template. As | |
| getVar | back to summary |
|---|---|
| public Object getVar(String var) | |
| publicMethodsWithName | back to summary |
|---|---|
| public ImmutableSet | |
| setVar | back to summary |
|---|---|
| public Runnable setVar(final String var, Object value) Sets the given variable to the given value.
| |
| varIsDefined | back to summary |
|---|---|
| public boolean varIsDefined(String var) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final MethodFinder | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Map | getMacros()
Implements com. |
| public Object | |
| public ImmutableSet | publicMethodsWithName(Class<?> startClass, String name)
Implements com. MethodFinder#publicMethodsWithName.
|
| public Runnable | setVar(final String var, Object value)
Implements com. |
| public boolean |
| macros | back to summary |
|---|---|
| private final Map<String, Macro> macros | |
| methodFinder | back to summary |
|---|---|
| private final MethodFinder methodFinder | |
| vars | back to summary |
|---|---|
| private final Map<String, Object> vars | |
| PlainEvaluationContext | back to summary |
|---|---|
| pack-priv PlainEvaluationContext(Map<String, ?> vars, Map<String, Macro> macros, MethodFinder methodFinder) | |
| getMacros | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns a modifiable mapping from macro names to macros. Initially this map starts off with the
macros that were defined in the root template. As
| |
| getVar | back to summary |
|---|---|
| public Object getVar(String var) Implements com.
| |
| publicMethodsWithName | back to summary |
|---|---|
| public ImmutableSet Implements com. Doc from com. See
| |
| setVar | back to summary |
|---|---|
| public Runnable setVar(final String var, Object value) Implements com. Doc from com. Sets the given variable to the given value. | |
| varIsDefined | back to summary |
|---|---|
| public boolean varIsDefined(String var) Implements com.
| |