JZtxtcmdExecuter
instead. It has more capability.public final class PrepareCmd
extends java.lang.Object
PrepareCmd()
returns the command with given actual parameter
in the form, which is able to execute with java.lang.Process
Modifier and Type | Class and Description |
---|---|
private static class |
PrepareCmd.CmdReplace
Deprecated.
Element in the
listPlaceholderForCmdArgsTemplate . |
private static class |
PrepareCmd.File3Parts
Deprecated.
Instance combines 4 instances to get parts from given files.
|
private static class |
PrepareCmd.FileParts
Deprecated.
Helper class to get parts from the file path.
|
Modifier and Type | Field and Description |
---|---|
private char |
cKindOfExecutionDefault
Deprecated.
Kind of the execution as default value given on ctor
|
private char |
cKindOfExecutionPrepared
Deprecated.
Kind of the execution of the prepared command
|
private java.lang.String[] |
cmdArgsTemplate
Deprecated.
Command string without placeholder.
|
private java.lang.String[] |
cmdSrc
Deprecated.
The command how it is given with place holder.
|
static char |
executeInShellClose
Deprecated.
Kind of command execution: A system shell should be opened while execution and close after them.
|
static char |
executeInShellOpened
Deprecated.
Kind of command execution: A system shell should be opened and let open after execution.
|
static char |
executeJavaMain
Deprecated.
Kind of command execution: A java class's main method is invoked.
|
static char |
executeLocalPipes
Deprecated.
Kind of command execution: The execution is done using local pipes.
|
static char |
executeQuest
Deprecated.
Kind of command execution: A java class's main method is invoked.
|
static char |
executeStartProcess
Deprecated.
Kind of command execution: A new system process is started.
|
private boolean |
isWindows
Deprecated.
|
private java.util.List<PrepareCmd.CmdReplace> |
listPlaceholderForCmdArgsTemplate
Deprecated.
List of positions where somewhat is to be preplaced.
|
private java.lang.String |
name
Deprecated.
Name of the command which it is showing to select.
|
private PrepareCmd.File3Parts |
part
Deprecated.
|
static java.lang.String |
version
Deprecated.
Version, history and license:
2016-12-27 Hartmut deprecated.
|
Constructor and Description |
---|
PrepareCmd()
Deprecated.
|
PrepareCmd(char cKindOfExecution)
Deprecated.
Creates an instance of a Preparer for a command.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
checkIsWindows()
Deprecated.
|
java.lang.Class |
getJavaClass()
Deprecated.
If the command is a Java class call, returns the Java class from class loader.
|
char |
getKindOfExecution()
Deprecated.
|
java.lang.String[] |
prepareCmd(CmdGetFileArgs_ifc args)
Deprecated.
Prepares a command for execution.
|
void |
prepareListCmdReplace()
Deprecated.
|
void |
set_cmd(java.lang.String cmd)
Deprecated.
Sets the command and prepares it.
|
void |
set_name(java.lang.String name)
Deprecated.
Sets the name of the command.
|
java.lang.String |
toString()
Deprecated.
|
boolean |
usePipes()
Deprecated.
Returns true if the stdin, stdout and stderr should be used and the end of execution is awaiting.
|
public static java.lang.String version
JZtxtcmdExecuter
instead. It has more capability.
checkIsWindows()
.
The environment variabls "os" will be tested whether it starts with "windows" (converted non-case sensitive).
getJavaClass()
prepared (not ready)
public static final char executeInShellOpened
public static final char executeInShellClose
public static final char executeStartProcess
public static final char executeLocalPipes
public static final char executeJavaMain
public static final char executeQuest
private final PrepareCmd.File3Parts part
private java.util.List<PrepareCmd.CmdReplace> listPlaceholderForCmdArgsTemplate
private java.lang.String[] cmdArgsTemplate
listPlaceholderForCmdArgsTemplate
.
It may be a template of the command because the correct files to use are not contained,
instead the listPlaceholderForCmdArgsTemplate
contains the kind of placeholder.private final char cKindOfExecutionDefault
private final boolean isWindows
private char cKindOfExecutionPrepared
private java.lang.String[] cmdSrc
prepareListCmdReplace()
. It isn't use after them.private java.lang.String name
PrepareCmd(char cKindOfExecution)
executeInShellClose
, executeInShellClose
, executeLocalPipes
and executeStartProcess
.
cKindOfExecution
- One of 0 or '%', '>', '&', '$' or '*'PrepareCmd()
private final boolean checkIsWindows()
@Deprecated public void prepareListCmdReplace()
#cmd
with placeholder in the internal form.
This method can be invoked on creation of this class or if a new cmd is assigned.public void set_cmd(java.lang.String cmd)
ZbnfJavaOutput
with the ZBNF parser.cmd
- The command with placeholder.public void set_name(java.lang.String name)
ZbnfJavaOutput
with the ZBNF parser.name
- The string given name.public java.lang.String[] prepareCmd(CmdGetFileArgs_ifc args)
args
- Interface to get the input files for the command. Getting the file is optimized.
CmdGetFileArgs_ifc.getFile1()
etc. is only called one time in this method.
It means the getting process can be complex in the implementor of CmdGetFileArgs_ifc
.
Getting of file parts is optimized, for example only one time getCanonicalPath().public java.lang.Class getJavaClass()
public boolean usePipes()
public char getKindOfExecution()
public java.lang.String toString()
toString
in class java.lang.Object