| Constructor and Description | 
|---|
| ExceptionTable(ConstPool cp)Constructs an  exception_table[]. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(int index,
   ExceptionTable table,
   int offset)Copies the given exception table at the specified position
 in the table. | 
| void | add(int start,
   int end,
   int handler,
   int type)Appends a new entry at the end of the table. | 
| void | add(int index,
   int start,
   int end,
   int handler,
   int type)Adds a new entry at the specified position in the table. | 
| int | catchType(int nth)Returns  catchTypeof the n-th entry. | 
| Object | clone()Creates and returns a copy of this object. | 
| ExceptionTable | copy(ConstPool newCp,
    Map classnames)Makes a copy of this  exception_table[]. | 
| int | endPc(int nth)Returns  endPcof the n-th entry. | 
| int | handlerPc(int nth)Returns  handlerPcof the n-th entry. | 
| void | remove(int index)Removes the entry at the specified position in the table. | 
| void | setCatchType(int nth,
            int value)Sets  catchTypeof the n-th entry. | 
| void | setEndPc(int nth,
        int value)Sets  endPcof the n-th entry. | 
| void | setHandlerPc(int nth,
            int value)Sets  handlerPcof the n-th entry. | 
| void | setStartPc(int nth,
          int value)Sets  startPcof the n-th entry. | 
| int | size()Returns  exception_table_length, which is the number
 of entries in theexception_table[]. | 
| int | startPc(int nth)Returns  startPcof the n-th entry. | 
public ExceptionTable(ConstPool cp)
exception_table[].cp - constant pool table.public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic int size()
exception_table_length, which is the number
 of entries in the exception_table[].public int startPc(int nth)
startPc of the n-th entry.nth - the n-th (>= 0).public void setStartPc(int nth,
                       int value)
startPc of the n-th entry.nth - the n-th (>= 0).value - new value.public int endPc(int nth)
endPc of the n-th entry.nth - the n-th (>= 0).public void setEndPc(int nth,
                     int value)
endPc of the n-th entry.nth - the n-th (>= 0).value - new value.public int handlerPc(int nth)
handlerPc of the n-th entry.nth - the n-th (>= 0).public void setHandlerPc(int nth,
                         int value)
handlerPc of the n-th entry.nth - the n-th (>= 0).value - new value.public int catchType(int nth)
catchType of the n-th entry.nth - the n-th (>= 0).constant_pool table,
          or zero if this exception handler is for all exceptions.public void setCatchType(int nth,
                         int value)
catchType of the n-th entry.nth - the n-th (>= 0).value - new value.public void add(int index,
                ExceptionTable table,
                int offset)
index - index (>= 0) at which the entry is to be inserted.offset - the offset added to the code position.public void add(int index,
                int start,
                int end,
                int handler,
                int type)
index - index (>= 0) at which the entry is to be inserted.start - startPcend - endPchandler - handlerPctype - catchTypepublic void add(int start,
                int end,
                int handler,
                int type)
start - startPcend - endPchandler - handlerPctype - catchTypepublic void remove(int index)
index - the index of the removed entry.public ExceptionTable copy(ConstPool newCp, Map classnames)
exception_table[].
 Class names are replaced according to the
 given Map object.newCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
                          class names.Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.