public class CmdInterpreter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_APPLICATION
The command is an external application.
|
static int |
TYPE_BSHFILE
The command is a file containing java code.
|
static int |
TYPE_JAVACODE
The command is inline java code.
|
static int |
TYPE_SHELLCOMMAND
The command will be executed in a system dependent shell.
|
Constructor and Description |
---|
CmdInterpreter(JPiv jpiv,
java.lang.String handleName)
Creates a new instance of a java2.CmdInterpreter.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBshNamespace()
Clears all Bean Shell variables.
|
void |
execute(java.lang.String[] command,
int type)
Executes a command.
|
public static final int TYPE_APPLICATION
public static final int TYPE_SHELLCOMMAND
public static final int TYPE_JAVACODE
public static final int TYPE_BSHFILE
public CmdInterpreter(JPiv jpiv, java.lang.String handleName)
myHandle = handleName.getSettingsFrame();
jpiv
- The jpiv2.JPiv object which methods you would like to use.handleName
- The name via that you would like to refere to the jpiv2.JPiv
object.public void execute(java.lang.String[] command, int type)
command
- An array containing a command string and parameters or the
name of a bsh-script file.type
- A constant. The constant specifies wether the command is
executed directly, within an operating-system-specific shell
or by the BeanShell java interpreter.public void clearBshNamespace()