edu.umd.cs.findbugs.ba

Class LineNumberMap

public class LineNumberMap extends Object

Summarize line numbers (and other source information) for a method.
Constructor Summary
LineNumberMap(MethodGen methodGen)
Constructor.
Method Summary
voidbuild()
Build the line number information.
booleanhasLineNumbers()
Does this method have line number information?
LineNumberlookupLineNumber(InstructionHandle handle)
Find the line number information for instruction whose handle is given.

Constructor Detail

LineNumberMap

public LineNumberMap(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 LineNumber lookupLineNumber(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™ is licenced under the LGPL. Copyright © 2006 University of Maryland.