APIdia Launch Partner
Top Description Methods
com.sun.org.apache.bcel.internal.generic

public Interface InstructionTargeter

Known Direct Implementers
com.sun.org.apache.bcel.internal.generic.LineNumberGen, com.sun.org.apache.bcel.internal.generic.LocalVariableGen, com.sun.org.apache.bcel.internal.generic.BranchInstruction, com.sun.org.apache.bcel.internal.generic.CodeExceptionGen

Denotes that a class targets InstructionHandles within an InstructionList.
See Also
BranchHandle, LocalVariableGen, CodeExceptionGen

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether this targeter targets the specified instruction handle.
containsTarget
(InstructionHandle
the instruction handle to test.
instructionHandle
)

Tests whether this targeter targets the specified instruction handle.

public void
updateTarget(InstructionHandle
the old handle
oldIh
,
InstructionHandle
the new handle
newIh
)

Replaces the target of this targeter from this old handle to the new handle.

Method Detail

containsTargetback to summary
public boolean containsTarget(InstructionHandle instructionHandle)

Tests whether this targeter targets the specified instruction handle.

Parameters
instructionHandle:InstructionHandle

the instruction handle to test.

Returns:boolean

whether this targeter targets the specified instruction handle.

updateTargetback to summary
public void updateTarget(InstructionHandle oldIh, InstructionHandle newIh) throws ClassGenException

Replaces the target of this targeter from this old handle to the new handle.

Parameters
oldIh:InstructionHandle

the old handle

newIh:InstructionHandle

the new handle

Exceptions
ClassGenException:
if oldIh is not targeted by this object