|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tomp.xtcl.command.AbstractCommand net.sf.tomp.xtcl.command.TryBlock
public class TryBlock
Executes the command within the TryBlock.
Field Summary | |
---|---|
protected Command |
command
the command in this try-block |
Constructor Summary | |
---|---|
TryBlock()
|
Method Summary | |
---|---|
int |
execute(Context context)
Executes the command within the TryBlock. |
void |
setCommand(Command c)
set the command in this try-block |
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 Command command
Constructor Detail |
---|
public TryBlock()
Method Detail |
---|
public void setCommand(Command c)
c
- the command in this try-blockpublic int execute(Context context) throws java.lang.Exception
execute
in interface Command
execute
in class AbstractCommand
context
- Context this command will be executed in.
java.lang.Exception
- neverpublic 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 |