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 ih) |
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)
InstructionTargeter
containsTarget
in interface InstructionTargeter
public void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih)
InstructionTargeter
updateTarget
in interface InstructionTargeter
old_ih
- old targetnew_ih
- new targetpublic LineNumber getLineNumber()
public void setInstruction(InstructionHandle ih)
public InstructionHandle getInstruction()
public void setSourceLine(int src_line)
public int getSourceLine()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.