Package picocli
Class CommandLine.NoOpModelTransformer
- java.lang.Object
-
- picocli.CommandLine.NoOpModelTransformer
-
- All Implemented Interfaces:
CommandLine.IModelTransformer
- Enclosing class:
- CommandLine
private static class CommandLine.NoOpModelTransformer extends java.lang.Object implements CommandLine.IModelTransformer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOpModelTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandLine.Model.CommandSpec
transform(CommandLine.Model.CommandSpec commandSpec)
Given an original CommandSpec, return the object that should be used instead.
-
-
-
Method Detail
-
transform
public CommandLine.Model.CommandSpec transform(CommandLine.Model.CommandSpec commandSpec)
Description copied from interface:CommandLine.IModelTransformer
Given an original CommandSpec, return the object that should be used instead. Implementors may modify the specified CommandSpec and return it, or create a full or partial copy of the specified CommandSpec, and return that, or even return a completely new CommandSpec.Implementors are free to add or remove options, positional parameters, subcommands or modify the command in any other way.
This method is called once, after the full command hierarchy is constructed, and before any command line arguments are parsed.
- Specified by:
transform
in interfaceCommandLine.IModelTransformer
- Returns:
- the CommandSpec to use instead of the specified one
-
-