FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba
Class LineNumberMap

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.LineNumberMap

public class LineNumberMap
extends java.lang.Object

Summarize line numbers (and other source information) for a method.


Constructor Summary
LineNumberMap(org.apache.bcel.generic.MethodGen methodGen)
          Constructor.
 
Method Summary
 void build()
          Build the line number information.
 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
 

Constructor Detail

LineNumberMap

public LineNumberMap(org.apache.bcel.generic.MethodGen methodGen)
Constructor.

Parameters:
methodGen - the method to summarize line numbers for
Method Detail

build

public void build()
Build the line number information. Should be called before any other methods.


hasLineNumbers

public boolean hasLineNumbers()
Does this method have line number information?


lookupLineNumber

public org.apache.bcel.classfile.LineNumber lookupLineNumber(org.apache.bcel.generic.InstructionHandle handle)
Find the line number information for instruction whose handle is given.

Parameters:
handle - the InstructionHandle
Returns:
the LineNumber object containing bytecode offset and source line number

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.