Package | Description |
---|---|
edu.umd.cs.findbugs |
Main package for the FindBugs application - contains the
engine class (FindBugs), the object model classes for bug instances
(BugInstance, BugAnnotation), and other miscellany.
|
edu.umd.cs.findbugs.ba |
A bytecode analysis framework for BCEL, providing CFG construction,
generic dataflow analysis, and a variety of specific dataflow analyses.
|
edu.umd.cs.findbugs.gui2 | |
edu.umd.cs.findbugs.workflow |
Modifier and Type | Field and Description |
---|---|
protected SourceLineAnnotation |
BugAnnotationWithSourceLines.sourceLines |
Modifier and Type | Method and Description |
---|---|
static SourceLineAnnotation |
SourceLineAnnotation.createReallyUnknown(java.lang.String className)
Factory method to create an unknown source line annotation.
|
static SourceLineAnnotation |
SourceLineAnnotation.createUnknown(java.lang.String className)
Factory method to create an unknown source line annotation.
|
static SourceLineAnnotation |
SourceLineAnnotation.createUnknown(java.lang.String className,
java.lang.String sourceFile)
Factory method to create an unknown source line annotation.
|
static SourceLineAnnotation |
SourceLineAnnotation.createUnknown(java.lang.String className,
java.lang.String sourceFile,
int startBytecode,
int endBytecode)
Factory method to create an unknown source line annotation.
|
static SourceLineAnnotation |
SourceLineAnnotation.forEntireMethod(org.apache.bcel.classfile.JavaClass javaClass,
org.apache.bcel.classfile.Method method)
Create a SourceLineAnnotation covering an entire method.
|
static SourceLineAnnotation |
SourceLineAnnotation.forEntireMethod(org.apache.bcel.classfile.JavaClass javaClass,
XMethod xmethod)
Create a SourceLineAnnotation covering an entire method.
|
static SourceLineAnnotation |
SourceLineAnnotation.forEntireMethod(java.lang.String className,
java.lang.String sourceFile,
org.apache.bcel.classfile.LineNumberTable lineNumberTable,
int codeSize)
Create a SourceLineAnnotation covering an entire method.
|
static SourceLineAnnotation |
SourceLineAnnotation.forFirstLineOfMethod(MethodDescriptor methodDescriptor)
Make a best-effort attempt to create a SourceLineAnnotation for the first
line of a method.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromRawData(java.lang.String className,
java.lang.String sourceFile,
int startLine,
int endLine,
int startPC,
int endPC) |
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(BytecodeScanningDetector visitor)
Factory method for creating a source line annotation describing the
source line number for the instruction being visited by given visitor.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(BytecodeScanningDetector visitor,
int pc)
Factory method for creating a source line annotation describing the
source line number for the instruction being visited by given visitor.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(ClassContext classContext,
org.apache.bcel.generic.MethodGen methodGen,
java.lang.String sourceFile,
org.apache.bcel.generic.InstructionHandle handle)
Factory method for creating a source line annotation describing the
source line number for a visited instruction.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(ClassContext classContext,
org.apache.bcel.classfile.Method method,
org.apache.bcel.generic.InstructionHandle handle)
Create from Method and InstructionHandle in a visited class.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(ClassContext classContext,
org.apache.bcel.classfile.Method method,
int pc)
Create from Method and bytecode offset in a visited class.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(ClassContext classContext,
org.apache.bcel.classfile.Method method,
Location loc)
Create from Method and Location in a visited class.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(ClassContext classContext,
PreorderVisitor visitor,
int pc)
Factory method for creating a source line annotation describing the
source line number for the instruction being visited by given visitor.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(org.apache.bcel.classfile.JavaClass jclass,
org.apache.bcel.classfile.Method method,
int pc)
Create from Method and bytecode offset in a visited class.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(MethodDescriptor methodDescriptor,
int position) |
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstruction(MethodDescriptor methodDescriptor,
Location location)
Create from MethodDescriptor and Location of visited instruction.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstructionRange(BytecodeScanningDetector visitor,
int startPC,
int endPC)
Factory method for creating a source line annotation describing the
source line numbers for a range of instructions in the method being
visited by the given visitor.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstructionRange(ClassContext classContext,
org.apache.bcel.generic.MethodGen methodGen,
java.lang.String sourceFile,
org.apache.bcel.generic.InstructionHandle start,
org.apache.bcel.generic.InstructionHandle end)
Factory method for creating a source line annotation describing the
source line numbers for a range of instruction in a method.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedInstructionRange(ClassContext classContext,
PreorderVisitor visitor,
int startPC,
int endPC)
Factory method for creating a source line annotation describing the
source line numbers for a range of instructions in the method being
visited by the given visitor.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedMethod(org.apache.bcel.generic.MethodGen methodGen,
java.lang.String sourceFile)
Factory method for creating a source line annotation describing an entire
method.
|
static SourceLineAnnotation |
SourceLineAnnotation.fromVisitedMethod(PreorderVisitor visitor)
Factory method for creating a source line annotation describing an entire
method.
|
SourceLineAnnotation |
SwitchHandler.getCurrentSwitchStatement(BytecodeScanningDetector detector) |
SourceLineAnnotation |
BugAccumulator.getLastBugLocation() |
SourceLineAnnotation |
BugInstance.getPrimarySourceLineAnnotation()
Get the primary source line annotation.
|
SourceLineAnnotation |
ProgramPoint.getSourceLineAnnotation() |
SourceLineAnnotation |
FieldAnnotation.getSourceLines() |
SourceLineAnnotation |
ClassAnnotation.getSourceLines() |
SourceLineAnnotation |
BugAnnotationWithSourceLines.getSourceLines()
Get the SourceLineAnnotation describing the source lines where the method
is defined.
|
static SourceLineAnnotation |
ClassAnnotation.getSourceLinesForClass(java.lang.String className,
java.lang.String sourceFileName) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends SourceLineAnnotation> |
BugInstance.getAnotherInstanceSourceLineAnnotations() |
java.lang.Iterable<? extends SourceLineAnnotation> |
BugAccumulator.locations(BugInstance bug) |
Modifier and Type | Method and Description |
---|---|
void |
BugAccumulator.accumulateBug(BugInstance bug,
SourceLineAnnotation sourceLine)
Accumulate a warning at given source location.
|
BugInstance |
BugInstance.addSourceLine(SourceLineAnnotation sourceLine)
Add a source line annotation.
|
int |
FuzzyBugComparator.compareSourceLines(BugCollection lhsCollection,
BugCollection rhsCollection,
SourceLineAnnotation lhs,
SourceLineAnnotation rhs)
Compare source line annotations.
|
void |
BugAnnotationWithSourceLines.setSourceLines(SourceLineAnnotation sourceLines)
Set a SourceLineAnnotation describing the source lines where the package
element is defined.
|
void |
BugAnnotationVisitor.visitSourceLineAnnotation(SourceLineAnnotation sourceLineAnnotation) |
Modifier and Type | Method and Description |
---|---|
SourceFile |
SourceFinder.findSourceFile(SourceLineAnnotation source) |
static java.lang.String |
SourceFinder.getCanonicalName(SourceLineAnnotation source) |
static java.lang.String |
SourceFinder.getOrGuessSourceFile(SourceLineAnnotation source) |
static java.lang.String |
SourceFinder.getPlatformName(SourceLineAnnotation source) |
boolean |
SourceFinder.hasSourceFile(SourceLineAnnotation source) |
java.io.InputStream |
SourceFinder.openSource(SourceLineAnnotation source) |
Modifier and Type | Method and Description |
---|---|
void |
SourceCodeDisplay.displaySource(BugInstance bug,
SourceLineAnnotation source) |
Modifier and Type | Method and Description |
---|---|
boolean |
SourceSearcher.findSource(SourceLineAnnotation srcLine) |
boolean |
SourceSearcher.findSource0(SourceLineAnnotation srcLine) |
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.