|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bcel.generic.LineNumberGen
public class LineNumberGen
This class represents a line number within a method, i.e., give an instruction a line number corresponding to the source code line.
LineNumber
,
MethodGen
,
Serialized FormConstructor Summary | |
---|---|
LineNumberGen(InstructionHandle ih,
int src_line)
Create a line number. |
Method Summary | |
---|---|
Object |
clone()
Create a copy of this object, using a shallow copy. |
boolean |
containsTarget(InstructionHandle ih)
|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineNumberGen(InstructionHandle ih, int src_line)
ih
- instruction handle to referenceMethod Detail |
---|
public boolean containsTarget(InstructionHandle ih)
containsTarget
in interface InstructionTargeter
public void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih)
updateTarget
in interface InstructionTargeter
old_ih
- old targetnew_ih
- new targetpublic LineNumber getLineNumber()
public void setInstruction(InstructionHandle ih)
public Object clone()
Object
clone
in class Object
public InstructionHandle getInstruction()
public void setSourceLine(int src_line)
public int getSourceLine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |