public class ArgsVar extends DefaultingVar
The format for this var is
This variable resolver requires that the command-line arguments be made available through any of the following:
init(Args)
has been called.
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.
Args
,
org.apache.juneau.svl
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of this variable.
|
Constructor and Description |
---|
ArgsVar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
init(Args args)
Initialize the args for this variable.
|
String |
resolve(VarResolverSession session,
String key)
The interface that needs to be implemented for subclasses of
SimpleVar . |
doResolve
allowNested, allowRecurse, canResolve, getName
public static final String NAME
public ArgsVar()
public static void init(Args args)
args
- The parsed command-line arguments.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.