Class EnvVariablesVar
java.lang.Object
org.apache.juneau.commons.svl.Var
org.apache.juneau.commons.svl.SimpleVar
org.apache.juneau.commons.svl.DefaultingVar
org.apache.juneau.commons.svl.vars.EnvVariablesVar
Environment variable variable resolver.
The format for this var is
Example:
Since this is a SimpleVar, any variables contained in the result will be recursively resolved.
Likewise, if the arguments contain any variables, those will be resolved before they are passed to this var.
See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisStable()Process environment variables are immutable for the lifetime of the JVM, so this var opts in to compile-time stable-value folding.resolve(VarResolverSession session, String varVal) The interface that needs to be implemented for subclasses ofSimpleVar.Methods inherited from class org.apache.juneau.commons.svl.DefaultingVar
doResolveMethods inherited from class org.apache.juneau.commons.svl.Var
allowNested, allowRecurse, canResolve, getName
-
Field Details
-
NAME
The name of this variable.- See Also:
-
-
Constructor Details
-
EnvVariablesVar
public EnvVariablesVar()Constructor.
-
-
Method Details
-
resolve
Description copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar. -
isStable
Process environment variables are immutable for the lifetime of the JVM, so this var opts in to compile-time stable-value folding.Compiled templates resolve
$E{...}references once at compile time and replace them with literal segments — the runtime dispatch is eliminated.
-