MethodGen, CodeException, InstructionHandle
| Modifier and Type | Field and Description |
|---|---|
| private ObjectType | |
| private InstructionHandle | |
| private InstructionHandle | |
| private InstructionHandle |
| Access | Constructor and Description |
|---|---|
| public | CodeExceptionGen(InstructionHandle
Start of handled region (inclusive) start_pc, InstructionHandle End of handled region (inclusive) end_pc, InstructionHandle Where handling is done handler_pc, ObjectType which exception is handled, null for ANY catch_type)Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | Returns: true, if ih is target of this handlerImplements org. |
| public ObjectType | |
| public CodeException | |
| public InstructionHandle | |
| public InstructionHandle | |
| public InstructionHandle | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void | updateTarget(InstructionHandle
old target, either start or end old_ih, InstructionHandle new target new_ih)Implements org. |
| catch_type | back to summary |
|---|---|
| private ObjectType catch_type | |
| end_pc | back to summary |
|---|---|
| private InstructionHandle end_pc | |
| handler_pc | back to summary |
|---|---|
| private InstructionHandle handler_pc | |
| start_pc | back to summary |
|---|---|
| private InstructionHandle start_pc | |
| CodeExceptionGen | back to summary |
|---|---|
| public CodeExceptionGen(InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, ObjectType catch_type) Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| containsTarget | back to summary |
|---|---|
| public boolean containsTarget(InstructionHandle ih) Implements org.
| |
| getCatchType | back to summary |
|---|---|
| public ObjectType getCatchType() Gets the type of the Exception to catch, 'null' for ANY. | |
| getCodeException | back to summary |
|---|---|
| public CodeException getCodeException(ConstantPool cp) Get CodeException object.
| |
| getEndPC | back to summary |
|---|---|
public InstructionHandle getEndPC()
| |
| getHandlerPC | back to summary |
|---|---|
public InstructionHandle getHandlerPC()
| |
| getStartPC | back to summary |
|---|---|
public InstructionHandle getStartPC()
| |
| setCatchType | back to summary |
|---|---|
| public void setCatchType(ObjectType catch_type) Sets the type of the Exception to catch. Set 'null' for ANY. | |
| setEndPC | back to summary |
|---|---|
| public void setEndPC(InstructionHandle end_pc) | |
| setHandlerPC | back to summary |
|---|---|
| public void setHandlerPC(InstructionHandle handler_pc) | |
| setStartPC | back to summary |
|---|---|
| public void setStartPC(InstructionHandle start_pc) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| updateTarget | back to summary |
|---|---|
| public void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih) Implements org.
| |