Package com.aspectran.shell.command
Class AbstractCommandLine
- java.lang.Object
-
- com.aspectran.shell.command.AbstractCommandLine
-
- Direct Known Subclasses:
TransletCommandLine
public abstract class AbstractCommandLine extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractCommandLine(CommandLineParser lineParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandLineParsergetLineParser()Returns the command line parser.ParameterMapgetParameterMap()Returns the parameters to pass to the execution target extracted from the command line.java.lang.StringgetRequestName()Returns the name of the request extracted from the command line.booleanisVerbose()protected voidparse()voidsetVerbose(boolean verbose)
-
-
-
Constructor Detail
-
AbstractCommandLine
public AbstractCommandLine(@NonNull CommandLineParser lineParser)
-
-
Method Detail
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
getLineParser
public CommandLineParser getLineParser()
Returns the command line parser.- Returns:
- the command line parser
-
getRequestName
public java.lang.String getRequestName()
Returns the name of the request extracted from the command line.- Returns:
- the request name
-
getParameterMap
public ParameterMap getParameterMap()
Returns the parameters to pass to the execution target extracted from the command line.- Returns:
- the parameter map
-
parse
protected void parse()
-
-