|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.ExceptionHandler.Builder
public static final class ExceptionHandler.Builder
The Builder class is used to generate a new ExceptionHandler object using a small set of convenience methods.
| Constructor Summary | |
|---|---|
ExceptionHandler.Builder()
|
|
| Method Summary | |
|---|---|
ExceptionHandler.Builder |
addToCatch(Action action)
Add an action to the catch block of the exception handler. |
ExceptionHandler.Builder |
addToFinal(Action action)
Add an action to the final block of the exception handler. |
ExceptionHandler.Builder |
addToTry(Action action)
Add an action to the try block of the exception handler. |
ExceptionHandler |
build()
Generate an ExceptionHandler using the parameters defined in the Builder. |
ExceptionHandler.Builder |
setRegister(int index)
Set the register where the thrown object will be stored. |
ExceptionHandler.Builder |
setVariable(String name)
Set the name of the variable where thrown object will be assigned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionHandler.Builder()
| Method Detail |
|---|
public ExceptionHandler.Builder setRegister(int index)
index - the register number. Must be in the range 0..255.
public ExceptionHandler.Builder setVariable(String name)
name - the name of the actionsctipt variable.
public ExceptionHandler.Builder addToTry(Action action)
action - the action to the executed in the try block.
public ExceptionHandler.Builder addToCatch(Action action)
action - the action to the executed in the catch block.
public ExceptionHandler.Builder addToFinal(Action action)
action - the action to the executed in the final block.
public ExceptionHandler build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||