public class LineNumberGen extends Object implements InstructionTargeter, Cloneable
LineNumber,
MethodGen| Constructor and Description |
|---|
LineNumberGen(InstructionHandle ih,
int srcLine)
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 srcLine) |
void |
updateTarget(InstructionHandle oldIh,
InstructionHandle newIh)
Replaces the target of this targeter from this old handle to the new handle.
|
public LineNumberGen(InstructionHandle ih, int srcLine)
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 srcLine)
public void updateTarget(InstructionHandle oldIh, InstructionHandle newIh)
InstructionTargeterupdateTarget in interface InstructionTargeteroldIh - old targetnewIh - new targetCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.