|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.LineNumberMap
public class LineNumberMap
Summarize line numbers (and other source information) for a method.
Field Summary | |
---|---|
private static boolean |
DEBUG
Set this property to true to get debug print statements. |
private boolean |
hasLineNumbers
|
private static boolean |
LINE_NUMBER_BUG
When this is true, the workaround for the bug in BCEL 5.0's LineNumberTable class is disabled. |
private java.util.IdentityHashMap<org.apache.bcel.generic.InstructionHandle,org.apache.bcel.classfile.LineNumber> |
lineNumberMap
|
private org.apache.bcel.generic.MethodGen |
methodGen
|
Constructor Summary | |
---|---|
LineNumberMap(org.apache.bcel.generic.MethodGen methodGen)
Constructor. |
Method Summary | |
---|---|
void |
build()
Build the line number information. |
private void |
checkTable(org.apache.bcel.classfile.LineNumberTable table)
|
boolean |
hasLineNumbers()
Does this method have line number information? |
org.apache.bcel.classfile.LineNumber |
lookupLineNumber(org.apache.bcel.generic.InstructionHandle handle)
Find the line number information for instruction whose handle is given. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean DEBUG
private static final boolean LINE_NUMBER_BUG
private org.apache.bcel.generic.MethodGen methodGen
private java.util.IdentityHashMap<org.apache.bcel.generic.InstructionHandle,org.apache.bcel.classfile.LineNumber> lineNumberMap
private boolean hasLineNumbers
Constructor Detail |
---|
public LineNumberMap(org.apache.bcel.generic.MethodGen methodGen)
methodGen
- the method to summarize line numbers forMethod Detail |
---|
public void build()
private void checkTable(org.apache.bcel.classfile.LineNumberTable table)
public boolean hasLineNumbers()
public org.apache.bcel.classfile.LineNumber lookupLineNumber(org.apache.bcel.generic.InstructionHandle handle)
handle
- the InstructionHandle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |