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.npe | |
edu.umd.cs.findbugs.ba.vna | |
edu.umd.cs.findbugs.detect |
Modifier and Type | Class and Description |
---|---|
class |
BugAnnotationWithSourceLines |
class |
ClassAnnotation
A BugAnnotation object specifying a Java class involved in the bug.
|
class |
FieldAnnotation
A BugAnnotation specifying a particular field in particular class.
|
class |
IntAnnotation
Bug annotation class for integer values.
|
class |
LocalVariableAnnotation
Bug annotation class for local variable names
|
class |
MethodAnnotation
A BugAnnotation specifying a particular method in a particular class.
|
class |
PackageMemberAnnotation
Abstract base class for BugAnnotations describing constructs
which are contained in a Java package.
|
class |
SourceLineAnnotation
A BugAnnotation that records a range of source lines
in a class.
|
class |
StringAnnotation
Bug annotation class for string values.
|
class |
TypeAnnotation
Bug annotation class for java types.
|
Modifier and Type | Method and Description |
---|---|
static BugAnnotation |
MethodAnnotation.fromMethodDescriptor(MethodDescriptor methodDescriptor)
Create a MethodAnnotation from a MethodDescriptor.
|
static BugAnnotation |
BugInstance.getFieldOrMethodValueSource(OpcodeStack.Item item) |
static BugAnnotation |
BugInstance.getSomeSource(ClassContext classContext,
org.apache.bcel.classfile.Method method,
Location location,
OpcodeStack stack,
int stackPos) |
static BugAnnotation |
BugInstance.getSourceForTopStackValue(ClassContext classContext,
org.apache.bcel.classfile.Method method,
Location location) |
static BugAnnotation |
BugInstance.getValueSource(OpcodeStack.Item item,
org.apache.bcel.classfile.Method method,
int pc) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<BugAnnotation> |
BugInstance.annotationIterator()
Get an Iterator over all bug annotations.
|
java.util.List<? extends BugAnnotation> |
BugInstance.getAnnotations()
Get an Iterator over all bug annotations.
|
Modifier and Type | Method and Description |
---|---|
BugInstance |
BugInstance.add(BugAnnotation annotation) |
BugInstance |
BugInstance.addOptionalAnnotation(BugAnnotation annotation) |
BugInstance |
BugInstance.addOptionalAnnotation(BugAnnotation annotation,
java.lang.String role) |
BugInstance |
BugInstance.addOptionalUniqueAnnotations(BugAnnotation... annotations) |
BugInstance |
BugInstance.addOptionalUniqueAnnotationsWithFallback(BugAnnotation fallback,
BugAnnotation... annotations) |
BugInstance |
BugInstance.addOptionalUniqueAnnotationsWithFallback(BugAnnotation fallback,
BugAnnotation... annotations) |
int |
TypeAnnotation.compareTo(BugAnnotation o) |
int |
ClassAnnotation.compareTo(BugAnnotation o) |
int |
SourceLineAnnotation.compareTo(BugAnnotation o) |
int |
MethodAnnotation.compareTo(BugAnnotation o) |
int |
LocalVariableAnnotation.compareTo(BugAnnotation o) |
int |
FieldAnnotation.compareTo(BugAnnotation o) |
int |
IntAnnotation.compareTo(BugAnnotation o) |
int |
StringAnnotation.compareTo(BugAnnotation o) |
java.lang.String |
FindBugsMessageFormat.format(BugAnnotation[] args,
ClassAnnotation primaryClass)
Format the message using the given array of BugAnnotations as arguments
to bind to the placeholders in the pattern string.
|
static boolean |
FuzzyBugComparator.ignore(BugAnnotation annotation) |
static void |
BugAnnotationUtil.writeXML(XMLOutput xmlOutput,
java.lang.String elementName,
BugAnnotation annotation,
XMLAttributeList attributeList,
boolean addMessages)
Write a BugAnnotation as XML.
|
Modifier and Type | Method and Description |
---|---|
BugInstance |
BugInstance.addAnnotations(java.util.Collection<? extends BugAnnotation> annotationCollection)
Add a Collection of BugAnnotations.
|
Modifier and Type | Method and Description |
---|---|
static BugAnnotation |
NullDerefAndRedundantComparisonFinder.findAnnotationFromValueNumber(org.apache.bcel.classfile.Method method,
Location location,
ValueNumber valueNumber,
ValueNumberFrame vnaFrame)
|
Modifier and Type | Method and Description |
---|---|
void |
NullDerefAndRedundantComparisonCollector.foundGuaranteedNullDeref(java.util.Set<Location> assignedNullLocationSet,
java.util.Set<Location> derefLocationSet,
java.util.SortedSet<Location> doomedLocations,
ValueNumberDataflow vna,
ValueNumber refValue,
BugAnnotation variableAnnotation,
NullValueUnconditionalDeref deref,
boolean npeIfStatementCovered)
Subclasses should override this method to capture values
assigned null (or that become null through a comparison and branch)
that are guaranteed to reach a dereference (ignoring
implicit exception paths).
|
Modifier and Type | Method and Description |
---|---|
static BugAnnotation |
ValueNumberSourceInfo.findAnnotationFromValueNumber(org.apache.bcel.classfile.Method method,
Location location,
ValueNumber valueNumber,
ValueNumberFrame vnaFrame,
java.lang.String partialRole) |
static BugAnnotation |
ValueNumberSourceInfo.findRequiredAnnotationFromValueNumber(org.apache.bcel.classfile.Method method,
Location location,
ValueNumber valueNumber,
ValueNumberFrame vnaFrame,
java.lang.String partialRole) |
Modifier and Type | Method and Description |
---|---|
void |
FindNullDeref.foundGuaranteedNullDeref(java.util.Set<Location> assignedNullLocationSet,
java.util.Set<Location> derefLocationSet,
java.util.SortedSet<Location> doomedLocations,
ValueNumberDataflow vna,
ValueNumber refValue,
BugAnnotation variableAnnotation,
NullValueUnconditionalDeref deref,
boolean npeIfStatementCovered) |
void |
NoiseNullDeref.foundGuaranteedNullDeref(java.util.Set<Location> assignedNullLocationSet,
java.util.Set<Location> derefLocationSet,
java.util.SortedSet<Location> doomedLocations,
ValueNumberDataflow vna,
ValueNumber refValue,
BugAnnotation variableAnnotation,
NullValueUnconditionalDeref deref,
boolean npeIfStatementCovered) |
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.