public abstract class SimpleVar extends Var
Note the difference between this class and StreamedVar
that streams values to writers.
Unlike the StreamedVar
class, the returned value from this class can contain nested variables that will be
recursively resolved by VarResolver
.
Subclasses must implement the following method:
Modifier | Constructor and Description |
---|---|
protected |
SimpleVar(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
resolveTo(VarResolverSession session,
Writer w,
String arg)
The interface that needs to be implemented for subclasses of
StreamedVar . |
allowNested, allowRecurse, canResolve, doResolve, getName, resolve
public void resolveTo(VarResolverSession session, Writer w, String arg) throws Exception
Var
StreamedVar
.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.