MethodGen, CodeException, InstructionHandle
| Modifier and Type | Field and Description |
|---|---|
| private ObjectType | |
| pack-priv static final CodeExceptionGen[] | |
| private InstructionHandle | |
| private InstructionHandle | |
| private InstructionHandle |
| Access | Constructor and Description |
|---|---|
| public | CodeExceptionGen(final InstructionHandle
Start of handled region (inclusive) startPc, final InstructionHandle End of handled region (inclusive) endPc, final InstructionHandle Where handling is done handlerPc, final ObjectType which exception is handled, null for ANY catchType)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 | getCodeException(final ConstantPoolGen
constant pool cp)
Deprecated
as a consequence of
Gets CodeException object.
CodeException being deprecated.
|
| public InstructionHandle | |
| public InstructionHandle | |
| public InstructionHandle | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void | updateTarget(final InstructionHandle
old target, either start or end oldIh, final InstructionHandle new target newIh)Implements org. |
| catchType | back to summary |
|---|---|
| private ObjectType catchType | |
| EMPTY_ARRAY | back to summary |
|---|---|
| pack-priv static final CodeExceptionGen[] EMPTY_ARRAY | |
| endPc | back to summary |
|---|---|
| private InstructionHandle endPc | |
| handlerPc | back to summary |
|---|---|
| private InstructionHandle handlerPc | |
| startPc | back to summary |
|---|---|
| private InstructionHandle startPc | |
| CodeExceptionGen | back to summary |
|---|---|
| public CodeExceptionGen(final InstructionHandle startPc, final InstructionHandle endPc, final InstructionHandle handlerPc, final ObjectType catchType) 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(final InstructionHandle ih) Implements org. Doc from org. Checks whether this targeter targets the specified instruction handle.
| |
| 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(final ConstantPoolGen cp)
Deprecated as a consequence of Gets 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(final ObjectType catchType) Sets the type of the Exception to catch. Set 'null' for ANY. | |
| setEndPC | back to summary |
|---|---|
| public void setEndPC(final InstructionHandle endPc) | |
| setHandlerPC | back to summary |
|---|---|
| public void setHandlerPC(final InstructionHandle handlerPc) | |
| setStartPC | back to summary |
|---|---|
| public void setStartPC(final InstructionHandle startPc) | |
| 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(final InstructionHandle oldIh, final InstructionHandle newIh) Implements org. Doc from org. Replaces the target of this targeter from this old handle to the new handle.
| |