Top Description Methods
org.apache.bcel.generic

public Interface InstructionTargeter

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

Denote that a class targets InstructionHandles within an InstructionList. Namely the following implementers:
See Also
BranchHandle, LocalVariableGen, CodeExceptionGen

Method Summary

Modifier and TypeMethod and Description
public boolean
containsTarget(InstructionHandle ih)

Checks 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 ih)

Checks 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