public static final class AdHocCommand.Args extends Object implements Arguments<AdHocCommand.Args>
AdHocCommand.| Constructor and Description |
|---|
Args(LineOperation operation)
Constructor with the single operation argument passed to the
constructor of
AdHocCommand. |
| Modifier and Type | Method and Description |
|---|---|
AdHocCommand.Args |
getForContext(ExecutionContext context)
Returns an arguments object for the given execution context with resolved
variables if necessary and possible.
|
LineOperation |
getOperation() |
String |
toString()
Returns a string representation of the command arguments and options.
|
public Args(LineOperation operation)
AdHocCommand.operation - the operation argumentpublic final LineOperation getOperation()
public AdHocCommand.Args getForContext(ExecutionContext context)
Argumentsthis arguments instance is simply returned.
If variables are present, they are resolved if such a variable is defined
in the VariableContext returned by
context.getVariableContext().
Values are converted if necessary with the ValueConverters
returned by
context.getValueConverterFor(Class).
getForContext in interface Arguments<AdHocCommand.Args>context - the execution context providing access to variables and
converterspublic String toString()
ArgumentstoString in interface Arguments<AdHocCommand.Args>toString in class ObjectCopyright © 2025. All rights reserved.