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.ba.jsr305 |
Support for analyzing code containing JSR-305 type qualifier annotations.
|
edu.umd.cs.findbugs.ba.npe | |
edu.umd.cs.findbugs.ba.vna | |
edu.umd.cs.findbugs.detect | |
edu.umd.cs.findbugs.filter | |
edu.umd.cs.findbugs.gui2 | |
edu.umd.cs.findbugs.visitclass | |
edu.umd.cs.findbugs.xml |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
BugInstance.getAnnotationText()
Get the user annotation text.
|
BugPattern |
BugInstance.getBugPattern()
Get the BugPattern.
|
java.lang.String |
I18N.getBugTypeDescription(java.lang.String shortBugType)
Get a description for given "bug type".
|
java.lang.String |
BugDesignation.getDesignationKey()
return the user designation
E.g., "MOSTLY_HARMLESS", "CRITICAL", "NOT_A_BUG", etc.
|
java.lang.String |
I18N.getDetailHTML(java.lang.String key)
Get an HTML document describing the bug pattern for given key in detail.
|
java.lang.String |
I18N.getMessage(java.lang.String key)
Deprecated.
|
BugDesignation |
BugInstance.getNonnullUserDesignation()
Deprecated.
|
java.lang.String |
I18N.getShortMessage(java.lang.String key)
Get a short message string.
|
java.lang.String |
I18N.getShortMessageWithoutCode(java.lang.String key) |
java.lang.String |
BugInstance.getUserDesignationKey()
Get the user designation key.
|
int |
BugInstance.getUserDesignationKeyIndex() |
Modifier and Type | Method and Description |
---|---|
BugInstance |
BugInstance.addSourceLine(ClassContext classContext,
org.apache.bcel.generic.MethodGen methodGen,
java.lang.String sourceFile,
org.apache.bcel.generic.InstructionHandle handle)
Add a source line annotation for the given instruction in the given method.
|
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.
|
void |
BugReporter.reportBug(BugInstance bugInstance)
Report a bug.
|
Constructor and Description |
---|
SourceLineAnnotation(java.lang.String className,
java.lang.String sourceFile,
int startLine,
int endLine,
int startBytecode,
int endBytecode)
Constructor.
|
SourceLineAnnotation(java.lang.String className,
java.lang.String sourceFile,
int startLine,
int endLine,
int startBytecode,
int endBytecode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.bcel.generic.ConstantPoolGen |
ClassContext.getConstantPoolGen()
Get the ConstantPoolGen used to create the MethodGens
for this class.
|
java.lang.Integer |
SourceInfoMap.SourceLineRange.getEnd() |
static java.util.Set<java.lang.Integer> |
ClassContext.getLoopExitBranches(org.apache.bcel.classfile.Method method,
org.apache.bcel.generic.MethodGen methodGen) |
java.util.List<org.apache.bcel.classfile.Method> |
ClassContext.getMethodsInCallOrder() |
static IncompatibleTypes |
IncompatibleTypes.getPriorityForAssumingCompatible(GenericObjectType genericType,
org.apache.bcel.generic.Type plainType) |
static IncompatibleTypes |
IncompatibleTypes.getPriorityForAssumingCompatible(org.apache.bcel.generic.ObjectType expectedType,
org.apache.bcel.generic.ObjectType actualType,
boolean pointerEquality) |
static IncompatibleTypes |
IncompatibleTypes.getPriorityForAssumingCompatible(org.apache.bcel.generic.Type lhsType,
org.apache.bcel.generic.Type rhsType) |
static IncompatibleTypes |
IncompatibleTypes.getPriorityForAssumingCompatible(org.apache.bcel.generic.Type expectedType,
org.apache.bcel.generic.Type actualType,
boolean pointerEquality) |
java.lang.Integer |
SourceInfoMap.SourceLineRange.getStart() |
static java.util.Set<XMethod> |
Hierarchy2.resolveMethodCallTargets(org.apache.bcel.generic.InvokeInstruction invokeInstruction,
TypeFrame typeFrame,
org.apache.bcel.generic.ConstantPoolGen cpg)
Resolve possible method call targets.
|
Modifier and Type | Method and Description |
---|---|
static CFGBuilder |
CFGBuilderFactory.create(org.apache.bcel.generic.MethodGen methodGen)
Create a CFGBuilder to build a CFG for given method.
|
org.apache.bcel.classfile.JavaClass |
URLClassPathRepository.findClass(java.lang.String className) |
static XField |
Hierarchy.findXField(org.apache.bcel.generic.FieldInstruction fins,
org.apache.bcel.generic.ConstantPoolGen cpg)
Look up the field referenced by given FieldInstruction,
returning it as an
XField object. |
static Location |
Location.getFirstLocation(BasicBlock basicBlock) |
static Location |
Location.getLastLocation(BasicBlock basicBlock) |
org.apache.bcel.classfile.JavaClass |
URLClassPathRepository.loadClass(java.lang.String className) |
org.apache.bcel.classfile.JavaClass |
AnalysisContext.lookupClass(ClassDescriptor classDescriptor)
Lookup a class.
|
abstract org.apache.bcel.classfile.JavaClass |
AnalysisContext.lookupClass(java.lang.String className)
Lookup a class.
|
java.lang.String |
AnalysisContext.lookupSourceFile(java.lang.String dottedClassName)
Lookup a class's source file
|
static org.apache.bcel.classfile.JavaClass |
AnalysisContext.lookupSystemClass(java.lang.String className)
This is equivalent to Repository.lookupClass() or this.lookupClass(),
except it uses the original Repository instead of the current one.
|
void |
AnalysisContext.setClassSummary(ClassSummary classSummary) |
void |
AnalysisContext.setFieldSummary(FieldSummary fieldSummary) |
void |
AnalysisContext.setUnreadFields(UnreadFields unreadFields) |
Constructor and Description |
---|
BetterCFGBuilder2(org.apache.bcel.generic.MethodGen methodGen)
Constructor.
|
Location(org.apache.bcel.generic.InstructionHandle handle,
BasicBlock basicBlock)
Constructor.
|
Location(org.apache.bcel.generic.InstructionHandle handle,
BasicBlock basicBlock)
Constructor.
|
SourceInfoMap.SourceLineRange(java.lang.Integer line)
Constructor for a single line.
|
SourceInfoMap.SourceLineRange(java.lang.Integer start,
java.lang.Integer end)
Constructor for a range of lines.
|
SourceInfoMap.SourceLineRange(java.lang.Integer start,
java.lang.Integer end)
Constructor for a range of lines.
|
Modifier and Type | Method and Description |
---|---|
static TypeQualifierAnnotation |
TypeQualifierAnnotation.combineParameterAnnotations(TypeQualifierAnnotation a,
TypeQualifierAnnotation b) |
static TypeQualifierValue |
TypeQualifierValue.getValue(ClassDescriptor desc,
java.lang.Object value)
Given a ClassDescriptor/value pair, return the
interned TypeQualifierValue representing that pair.
|
static TypeQualifierAnnotation |
TypeQualifierAnnotation.getValue(TypeQualifierValue desc,
javax.annotation.meta.When when) |
static java.util.Collection<TypeQualifierAnnotation> |
TypeQualifierAnnotation.getValues(java.util.Map<TypeQualifierValue,javax.annotation.meta.When> map) |
Modifier and Type | Method and Description |
---|---|
static IsNullValue |
IsNullValue.noKaboomNonNullValue(Location ins)
Get the instance representing a value known to be non-null
because a NPE would have occurred if it were null.
|
void |
IsNullValueFrame.setKnownValue(ValueNumber valueNumber,
IsNullValue knownValue) |
void |
IsNullValueFrame.setKnownValue(ValueNumber valueNumber,
IsNullValue knownValue) |
Modifier and Type | Method and Description |
---|---|
void |
ValueNumberFrame.addAvailableLoad(AvailableLoad availableLoad,
ValueNumber[] value)
Add an available load.
|
Modifier and Type | Method and Description |
---|---|
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) |
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) |
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 |
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) |
Constructor and Description |
---|
VersionMatcher(long version,
RelationalOp relOp) |
Modifier and Type | Method and Description |
---|---|
static BugCollection |
BugLoader.doAnalysis(Project p)
Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current project
|
static BugCollection |
BugLoader.doAnalysis(Project p,
FindBugsProgress progressCallback)
Performs an analysis and returns the BugSet created
|
static BugCollection |
BugLoader.redoAnalysisKeepComments(Project p)
Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current project
|
Constructor and Description |
---|
AnalyzingDialog(Project project,
AnalysisCallback callback,
boolean joinThread) |
AnalyzingDialog(Project project,
boolean changeSettings) |
Modifier and Type | Method and Description |
---|---|
static org.apache.bcel.classfile.LocalVariable |
LVTHelper.getLocalVariableAtPC(org.apache.bcel.classfile.LocalVariableTable lvt,
int index,
int pc)
returns the local variable at an index int the scope of PC
|
Modifier and Type | Method and Description |
---|---|
XMLAttributeList |
XMLAttributeList.addAttribute(java.lang.String name,
java.lang.String value)
Add a single attribute name and value.
|
XMLAttributeList |
XMLAttributeList.addAttribute(java.lang.String name,
java.lang.String value)
Add a single attribute name and value.
|
XMLAttributeList |
XMLAttributeList.addOptionalAttribute(java.lang.String name,
java.lang.String value)
Add a single attribute name and value.
|
static java.lang.String |
XMLAttributeList.getQuotedAttributeValue(java.lang.String rawValue)
Return a properly quoted form for an attribute value.
|
Constructor and Description |
---|
QuoteMetaCharacters(java.lang.String text,
MetaCharacterMap map)
Constructor.
|
QuoteMetaCharacters(java.lang.String text,
MetaCharacterMap map)
Constructor.
|
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.