|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.xtcl.command.AbstractCommand
net.sf.tomp.xtcl.command.JavaCommand
public class JavaCommand
Executes an executable Java class (i.e. with main method)
Field Summary | |
---|---|
protected java.lang.String[] |
args
the Java class arguments |
protected java.lang.String |
className
the Java class name |
Constructor Summary | |
---|---|
JavaCommand()
|
Method Summary | |
---|---|
int |
execute(Context c)
Executes the commmand, i.e. the Java class with args |
void |
setArgs(java.lang.String[] r)
sets the args |
void |
setClassName(java.lang.String r)
the executed Java class name |
java.lang.String |
toString()
|
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand |
---|
done, initParameters, listArray, listList, listMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String className
protected java.lang.String[] args
Constructor Detail |
---|
public JavaCommand()
Method Detail |
---|
public void setArgs(java.lang.String[] r)
r
- the Java class argspublic void setClassName(java.lang.String r)
r
- the executed Java class namepublic int execute(Context c) throws java.lang.Exception
execute
in interface Command
execute
in class AbstractCommand
c
- Context this command will be executed in.
java.lang.Exception
- only if I/O error occurs when reporting the result to user.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |