public class LineNumberGen extends Object implements InstructionTargeter, Cloneable
LineNumber,
MethodGen| Constructor and Description |
|---|
LineNumberGen(InstructionHandle ih,
int src_line)
Create a line number.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
containsTarget(InstructionHandle ih)
Checks whether this targeter targets the specified instruction handle.
|
InstructionHandle |
getInstruction() |
LineNumber |
getLineNumber()
Get LineNumber attribute .
|
int |
getSourceLine() |
void |
setInstruction(InstructionHandle instructionHandle) |
void |
setSourceLine(int src_line) |
void |
updateTarget(InstructionHandle old_ih,
InstructionHandle new_ih)
Replaces the target of this targeter from this old handle to the new handle.
|
public LineNumberGen(InstructionHandle ih, int src_line)
ih - instruction handle to referencepublic boolean containsTarget(InstructionHandle ih)
InstructionTargetercontainsTarget in interface InstructionTargeterpublic InstructionHandle getInstruction()
public LineNumber getLineNumber()
public int getSourceLine()
public void setInstruction(InstructionHandle instructionHandle)
public void setSourceLine(int src_line)
public void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih)
InstructionTargeterupdateTarget in interface InstructionTargeterold_ih - old targetnew_ih - new targetCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.