Uses of Interface
edu.umd.cs.findbugs.BugAnnotation
Packages that use BugAnnotation
Package
Description
Main package for the FindBugs application - contains the engine class
(
FindBugs
), the object model classes for bug
instances (BugInstance
,
BugAnnotation
), and other miscellany.-
Uses of BugAnnotation in edu.umd.cs.findbugs
Classes in edu.umd.cs.findbugs that implement BugAnnotationModifier and TypeClassDescriptionclass
class
A BugAnnotation object specifying a Java class involved in the bug.class
A BugAnnotation specifying a particular field in particular class.class
Bug annotation class for integer values.class
Bug annotation class for local variable namesclass
A BugAnnotation specifying a particular method in a particular class.class
Abstract base class for BugAnnotations describing constructs which are contained in a Java package.class
A BugAnnotation that records a range of source lines in a class.class
Bug annotation class for string values.class
Bug annotation class for java types.Methods in edu.umd.cs.findbugs with type parameters of type BugAnnotationModifier and TypeMethodDescription<A extends BugAnnotation>
ABugInstance.getAnnotationWithRole
(Class<A> c, String role) Get the first bug annotation with the specified class and role; return null if no such annotation exists;Methods in edu.umd.cs.findbugs that return BugAnnotationModifier and TypeMethodDescriptionstatic 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.getSourceForStackValue
(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, int depth) 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) Methods in edu.umd.cs.findbugs that return types with arguments of type BugAnnotationModifier and TypeMethodDescriptionBugInstance.annotationIterator()
Get an Iterator over all bug annotations.List<? extends BugAnnotation>
BugInstance.getAnnotations()
Get an Iterator over all bug annotations.BugInstance.getAnnotationsForMessage
(boolean showContext) Methods in edu.umd.cs.findbugs with parameters of type BugAnnotationModifier and TypeMethodDescriptionBugInstance.add
(BugAnnotation annotation) BugInstance.addOptionalAnnotation
(BugAnnotation annotation) BugInstance.addOptionalAnnotation
(BugAnnotation annotation, String role) BugInstance.addOptionalUniqueAnnotations
(BugAnnotation... annotations) BugInstance.addOptionalUniqueAnnotationsWithFallback
(BugAnnotation fallback, BugAnnotation... annotations) int
ClassAnnotation.compareTo
(BugAnnotation o) int
FieldAnnotation.compareTo
(BugAnnotation o) int
IntAnnotation.compareTo
(BugAnnotation o) int
LocalVariableAnnotation.compareTo
(BugAnnotation o) int
MethodAnnotation.compareTo
(BugAnnotation o) int
SourceLineAnnotation.compareTo
(BugAnnotation o) int
StringAnnotation.compareTo
(BugAnnotation o) int
TypeAnnotation.compareTo
(BugAnnotation o) FindBugsMessageFormat.format
(BugAnnotation[] args, ClassAnnotation primaryClass) FindBugsMessageFormat.format
(BugAnnotation[] args, ClassAnnotation primaryClass, boolean abridgedMessages) 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) boolean
BugInstance.tryAddingOptionalUniqueAnnotations
(BugAnnotation... annotations) static void
BugAnnotationUtil.writeXML
(XMLOutput xmlOutput, String elementName, BugAnnotation annotation, XMLAttributeList attributeList, boolean addMessages) Write a BugAnnotation as XML.Method parameters in edu.umd.cs.findbugs with type arguments of type BugAnnotationModifier and TypeMethodDescriptionBugInstance.addAnnotations
(Collection<? extends BugAnnotation> annotationCollection) Add a Collection of BugAnnotations. -
Uses of BugAnnotation in edu.umd.cs.findbugs.ba.npe
Methods in edu.umd.cs.findbugs.ba.npe that return BugAnnotationModifier and TypeMethodDescriptionstatic BugAnnotation
NullDerefAndRedundantComparisonFinder.findAnnotationFromValueNumber
(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) Deprecated.Methods in edu.umd.cs.findbugs.ba.npe with parameters of type BugAnnotationModifier and TypeMethodDescriptionvoid
NullDerefAndRedundantComparisonCollector.foundGuaranteedNullDeref
(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, 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). -
Uses of BugAnnotation in edu.umd.cs.findbugs.ba.vna
Methods in edu.umd.cs.findbugs.ba.vna that return BugAnnotationModifier and TypeMethodDescriptionstatic BugAnnotation
ValueNumberSourceInfo.findAnnotationFromValueNumber
(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame, String partialRole) static BugAnnotation
ValueNumberSourceInfo.findRequiredAnnotationFromValueNumber
(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame, String partialRole) static BugAnnotation
ValueNumberSourceInfo.getFromValueNumber
(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, int stackPos) -
Uses of BugAnnotation in edu.umd.cs.findbugs.detect
Methods in edu.umd.cs.findbugs.detect with parameters of type BugAnnotationModifier and TypeMethodDescriptionvoid
FindNullDeref.foundGuaranteedNullDeref
(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) void
NoiseNullDeref.foundGuaranteedNullDeref
(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered)
ValueNumberSourceInfo.findRequiredAnnotationFromValueNumber(Method,Location,ValueNumber,ValueNumberFrame, String)
instead