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)
InstructionTargeter
containsTarget
in interface InstructionTargeter
public 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)
InstructionTargeter
updateTarget
in interface InstructionTargeter
oldIh
- old targetnewIh
- new targetCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.