|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpiv2.CmdInterpreter
public class CmdInterpreter
Executes external applications, shell commands, and interpretes javacode. The utilized class bsh.Interpreter() is part of the BeanShell project by Pat Niemeyer. For more information about BeanShell see: http://www.beanshell.org
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
CmdInterpreter(JPiv jpiv,
java.lang.String handleName)
Creates a new instance of a java2.CmdInterpreter. |
|
| Method Summary | |
|---|---|
void |
clearBshNamespace()
Clears all Bean Shell variables. |
void |
execute(java.lang.String[] command,
int type)
Executes a command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_APPLICATION
public static final int TYPE_SHELLCOMMAND
public static final int TYPE_JAVACODE
public static final int TYPE_BSHFILE
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||