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 CommandLineParser
getLineParser()
Returns the command line parser.ParameterMap
getParameterMap()
Returns the parameters to pass to the execution target extracted from the command line.java.lang.String
getRequestName()
Returns the name of the request extracted from the command line.boolean
isVerbose()
protected void
parse()
void
setVerbose(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()
-
-