catch clause or a finally block.
| Modifier and Type | Field and Description |
|---|---|
| private ExceptionTable | |
| private static String | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | Handler(ExceptionTable et, int nth, CodeIterator it, CtClass declaring, MethodInfo m)
Undocumented constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: null if this information is not available.Overrides javassist. Returns the source file containing the catch clause. |
| public int | Returns: -1 if this information is not available.Overrides javassist. Returns the source line number of the catch clause. |
| public CtClass | |
| public void | insertBefore(String
the source code representing the inserted bytecode.
It must be a single statement or block. src)Inserts bytecode at the beginning of the catch clause. |
| public boolean | |
| public CtClass[] | mayThrow()
Overrides javassist. Returns the list of exceptions that the catch clause may throw. |
| public void | replace(String
a Java statement except try-catch. statement)Implements abstract javassist. This method has not been implemented yet. |
| public CtBehavior | where()
Overrides javassist. Returns the method or constructor containing the catch clause. |
| etable | back to summary |
|---|---|
| private ExceptionTable etable | |
| EXCEPTION_NAME | back to summary |
|---|---|
| private static String EXCEPTION_NAME | |
| index | back to summary |
|---|---|
| private int index | |
| Handler | back to summary |
|---|---|
| protected Handler(ExceptionTable et, int nth, CodeIterator it, CtClass declaring, MethodInfo m) Undocumented constructor. Do not use; internal-use only. | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides javassist. Returns the source file containing the catch clause. | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Overrides javassist. Returns the source line number of the catch clause.
| |
| getType | back to summary |
|---|---|
| public CtClass getType() throws NotFoundException Returns the type handled by the catch clause.
If this is a | |
| insertBefore | back to summary |
|---|---|
| public void insertBefore(String src) throws CannotCompileException Inserts bytecode at the beginning of the catch clause.
The caught exception is stored in
| |
| isFinally | back to summary |
|---|---|
| public boolean isFinally() Returns true if this is a | |
| mayThrow | back to summary |
|---|---|
| public CtClass[] mayThrow() Overrides javassist. Returns the list of exceptions that the catch clause may throw.
| |
| replace | back to summary |
|---|---|
| public void replace(String statement) throws CannotCompileException Implements abstract javassist. This method has not been implemented yet. | |
| where | back to summary |
|---|---|
| public CtBehavior where() Overrides javassist. Returns the method or constructor containing the catch clause.
| |