Uses of Class
edu.umd.cs.findbugs.BugInstance
Packages that use BugInstance
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 BugInstance in edu.umd.cs.findbugs
Methods in edu.umd.cs.findbugs that return BugInstanceModifier and TypeMethodDescriptionBugInstance.add(BugAnnotation annotation) BugInstance.addAnnotations(Collection<? extends BugAnnotation> annotationCollection) Add a Collection of BugAnnotations.BugInstance.addCalledMethod(XMethod m) BugInstance.addCalledMethod(DismantleBytecode visitor) Add a method annotation for the method which has been called by the method currently being visited by given visitor.BugInstance.addCalledMethod(String className, String methodName, String methodSig, boolean isStatic) Add a method annotation.BugInstance.addCalledMethod(org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InvokeInstruction inv) Add a method annotation for the method which is called by given instruction.BugInstance.addCalledMethod(org.apache.bcel.generic.MethodGen methodGen, org.apache.bcel.generic.InvokeInstruction inv) Add a method annotation for the method which is called by given instruction.BugInstance.addClass(ClassDescriptor classDescriptor) Add a class annotation.BugInstance.addClass(PreorderVisitor visitor) Add a class annotation for the class that the visitor is currently visiting.Add a class annotation.Add a class annotation.BugInstance.addClass(org.apache.bcel.classfile.JavaClass jclass) Add a class annotation.BugInstance.addClass(org.objectweb.asm.tree.ClassNode classNode) Add a class annotation for the classNode.BugInstance.addClassAndMethod(XMethod xMethod) BugInstance.addClassAndMethod(MethodDescriptor methodDescriptor) BugInstance.addClassAndMethod(MethodAnnotation methodAnnotation) Add class and method annotations for given method.BugInstance.addClassAndMethod(PreorderVisitor visitor) Add a class annotation and a method annotation for the class and method which the given visitor is currently visiting.BugInstance.addClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Add class and method annotations for given class and method.BugInstance.addClassAndMethod(org.apache.bcel.generic.MethodGen methodGen, String sourceFile) Add class and method annotations for given method.BugInstance.addEqualsMethodUsed(ClassDescriptor expectedClass) BugInstance.addEqualsMethodUsed(Collection<XMethod> equalsMethods) BugInstance.addField(FieldVariable field) Add a field annotation for a FieldVariable matched in a ByteCodePattern.Add a field annotation for an XField.BugInstance.addField(FieldDescriptor fieldDescriptor) Add a field annotation for a FieldDescriptor.BugInstance.addField(FieldAnnotation fieldAnnotation) Add a field annotationBugInstance.addField(PreorderVisitor visitor) Add a field annotation.Add a field annotation.BugInstance.addFieldOrMethodValueSource(OpcodeStack.Item item) BugInstance.addFoundAndExpectedType(String foundType, String expectedType) BugInstance.addFoundAndExpectedType(org.apache.bcel.generic.Type foundType, org.apache.bcel.generic.Type expectedType) BugInstance.addInt(int value) Add an integer annotation.BugInstance.addMethod(JavaClassAndMethod classAndMethod) Add a method annotation.Add a MethodAnnotation from an XMethod.BugInstance.addMethod(MethodDescriptor method) Add a MethodAnnotation from an MethodDescriptor.BugInstance.addMethod(MethodAnnotation methodAnnotation) Add a method annotation.BugInstance.addMethod(PreorderVisitor visitor) Add a method annotation for the method which the given visitor is currently visiting.Add a method annotation.Add a method annotation.BugInstance.addMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Add a method annotation.Add a method annotation.BugInstance.addOptionalAnnotation(BugAnnotation annotation) BugInstance.addOptionalAnnotation(BugAnnotation annotation, String role) BugInstance.addOptionalField(XField xfield) Add a field annotation for an XField.BugInstance.addOptionalLocalVariable(DismantleBytecode dbc, OpcodeStack.Item item) Local variable addersBugInstance.addOptionalUniqueAnnotations(BugAnnotation... annotations) BugInstance.addOptionalUniqueAnnotationsWithFallback(BugAnnotation fallback, BugAnnotation... annotations) BugInstance.addParameterAnnotation(int index, String role) Add an annotation about a parameterBugInstance.addReferencedField(FieldAnnotation fa) Add a field annotation for the field referenced by the FieldAnnotation parameterBugInstance.addReferencedField(DismantleBytecode visitor) Add a field annotation for the field which has just been accessed by the method currently being visited by given visitor.BugInstance.addSomeSourceForTopTwoStackValues(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) BugInstance.addSourceForTopStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) BugInstance.addSourceLine(ClassContext classContext, PreorderVisitor visitor, int pc) Add a source line annotation for instruction whose PC is given in the method that the given visitor is currently visiting.BugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add source line annotation for given Location in a method.BugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.InstructionHandle handle) Add source line annotation for given Location in a method.BugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, org.apache.bcel.generic.InstructionHandle handle) Add a source line annotation for the given instruction in the given method.BugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, org.apache.bcel.generic.InstructionHandle start, org.apache.bcel.generic.InstructionHandle end) Add a source line annotation describing a range of instructions.BugInstance.addSourceLine(BytecodeScanningDetector visitor) Add a source line annotation for instruction currently being visited by given visitor.BugInstance.addSourceLine(BytecodeScanningDetector visitor, int pc) Add a source line annotation for instruction whose PC is given in the method that the given visitor is currently visiting.BugInstance.addSourceLine(MethodDescriptor methodDescriptor, Location location) Add source line annotation for given Location in a method.BugInstance.addSourceLine(SourceLineAnnotation sourceLine) Add a source line annotation.BugInstance.addSourceLineRange(ClassContext classContext, PreorderVisitor visitor, int startPC, int endPC) Add a source line annotation describing the source line numbers for a range of instructions in the method being visited by the given visitor.BugInstance.addSourceLineRange(BytecodeScanningDetector visitor, int startPC, int endPC) Add a source line annotation describing the source line numbers for a range of instructions in the method being visited by the given visitor.BugInstance.addString(char c) Add a String annotation.Add a String annotation.BugInstance.addSuperclass(PreorderVisitor visitor) Add a class annotation for the superclass of the class the visitor is currently visiting.BugInstance.addType(ClassDescriptor c) Add a type annotation.BugInstance.addType(org.apache.bcel.generic.Type type) BugInstance.addTypeOfNamedClass(String typeName) BugInstance.addUnknownSourceLine(String className, String sourceFile) Add a non-specific source line annotation.BugInstance.addValueSource(OpcodeStack.Item item, DismantleBytecode dbc) BugInstance.addValueSource(OpcodeStack.Item item, org.apache.bcel.classfile.Method method, int pc) BugInstance.addVisitedField(PreorderVisitor visitor) Add a field annotation for the field which is being visited by given visitor.ClassWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) FieldWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) MethodWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) PackageWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) ParameterWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) abstract BugInstanceWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) Add a description to the most recently added bug annotation.SortedBugCollection.getMatching(BugInstance bugInstance) BugCollection.lookupFromUniqueId(String uniqueId) Deprecated.SortedBugCollection.lookupFromUniqueId(String uniqueId) Deprecated.BugInstance.lowerPriorityIfDeprecated()static BugInstanceObfuscate.obfuscate(BugInstance b) BugInstance.setProperty(String name, String value) Set value of given property.Methods in edu.umd.cs.findbugs that return types with arguments of type BugInstanceModifier and TypeMethodDescriptionBugCollection.getCollection()Return the Collection storing the BugInstance objects.SortedBugCollection.getCollection()BugCollection.iterator()Return an Iterator over all the BugInstance objects in the BugCollection.SortedBugCollection.iterator()Iterable<? extends BugInstance> BugAccumulator.uniqueBugs()Methods in edu.umd.cs.findbugs with parameters of type BugInstanceModifier and TypeMethodDescriptionvoidBugAccumulator.accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) voidBugAccumulator.accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, Location location) voidBugAccumulator.accumulateBug(BugInstance bug, BytecodeScanningDetector visitor) Accumulate a warning at source location currently being visited by given BytecodeScanningDetector.voidBugAccumulator.accumulateBug(BugInstance bug, SourceLineAnnotation sourceLine) Accumulate a warning at given source location.booleanBugCollection.add(BugInstance bugInstance) Add a BugInstance to this BugCollection.booleanBugCollection.add(BugInstance bugInstance, boolean updateActiveTime) Add a BugInstance to this BugCollection.booleanSortedBugCollection.add(BugInstance bugInstance) Add a BugInstance to this BugCollection.booleanSortedBugCollection.add(BugInstance bugInstance, boolean updateActiveTime) voidProjectStats.addBug(BugInstance bug) Called when a bug is reported.voidPackageStats.addError(BugInstance bug) intPriorityAdjuster.adjustForDetector(BugInstance bugInstance) Adjust priority if the factory was forcibly enabled byExecutionPlanalthough the user did not select it.protected voidTextUIBugReporter.checkBugInstance(BugInstance bugInstance) For debugging: check a BugInstance to make sure it is valid.intFuzzyBugComparator.compare(BugInstance lhs, BugInstance rhs) intSloppyBugComparator.compare(BugInstance lhs, BugInstance rhs) intSortedBugCollection.BugInstanceComparator.compare(BugInstance lhs, BugInstance rhs) intSortedBugCollection.MultiversionBugInstanceComparator.compare(BugInstance lhs, BugInstance rhs) intVersionInsensitiveBugComparator.compare(BugInstance lhs, BugInstance rhs) intWarningComparator.compare(BugInstance lhs, BugInstance rhs) intBugInstance.compareTo(BugInstance other) booleanSortedBugCollection.contains(BugInstance bugInstance) voidProjectPackagePrefixes.countBug(BugInstance b) protected abstract voidAbstractBugReporter.doReportBug(BugInstance bugInstance) Subclasses must override this.voidBugCollectionBugReporter.doReportBug(BugInstance bugInstance) protected voidEmacsBugReporter.doReportBug(BugInstance bugInstance) protected voidPrintingBugReporter.doReportBug(BugInstance bugInstance) voidSortingBugReporter.doReportBug(BugInstance bugInstance) voidXDocsBugReporter.doReportBug(BugInstance bugInstance) static intBugRanker.findRank(BugInstance bug) SortedBugCollection.getMatching(BugInstance bugInstance) Iterable<? extends SourceLineAnnotation> BugAccumulator.locations(BugInstance bug) booleanClassWarningSuppressor.match(BugInstance bugInstance) booleanFieldWarningSuppressor.match(BugInstance bugInstance) booleanMethodWarningSuppressor.match(BugInstance bugInstance) booleanPackageWarningSuppressor.match(BugInstance bugInstance) booleanParameterWarningSuppressor.match(BugInstance bugInstance) booleanSuppressionMatcher.match(BugInstance b) booleanWarningSuppressor.match(BugInstance bugInstance) protected voidAbstractBugReporter.notifyObservers(BugInstance bugInstance) This should be called when a bug is reported by a subclass.static BugInstanceObfuscate.obfuscate(BugInstance b) protected voidEmacsBugReporter.printBug(BugInstance bugInstance) protected voidTextUIBugReporter.printBug(BugInstance bugInstance) Print bug in one-line format.protected voidXDocsBugReporter.printBug(BugInstance bugInstance) booleanSortedBugCollection.remove(BugInstance bugInstance) final voidAbstractBugReporter.reportBug(BugInstance bugInstance) voidBugAccumulator.reportBug(BugInstance bug, edu.umd.cs.findbugs.BugAccumulator.Data d) voidBugReportDispatcher.reportBug(BugInstance bugInstance) voidBugReporter.reportBug(BugInstance bugInstance) Report a bug.voidBugReporterObserver.reportBug(BugInstance bugInstance) Called when a BugReporter reports a bug.voidCategoryFilteringBugReporter.reportBug(BugInstance bugInstance) voidDelegatingBugReporter.reportBug(BugInstance bugInstance) voidExcludingHashesBugReporter.reportBug(BugInstance bugInstance) voidFilterBugReporter.reportBug(BugInstance bugInstance) voidBugInstance.setHistory(BugInstance from) voidXDocsBugReporter.toElement(BugInstance bugInstance) Method parameters in edu.umd.cs.findbugs with type arguments of type BugInstanceModifier and TypeMethodDescriptionvoidSortedBugCollection.addAll(Collection<BugInstance> collection) Add a Collection of BugInstances to this BugCollection object.voidSortedBugCollection.addAll(Collection<BugInstance> collection, boolean updateActiveTime) Add a Collection of BugInstances to this BugCollection object.static voidSortedBugCollection.cloneAll(Collection<BugInstance> dest, Collection<BugInstance> source) Clone all of the BugInstance objects in the source Collection and add them to the destination Collection.Constructor parameters in edu.umd.cs.findbugs with type arguments of type BugInstanceModifierConstructorDescriptionSortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator) Constructor.SortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator, Project project) SortedBugCollection(Comparator<BugInstance> comparator) Constructor. -
Uses of BugInstance in edu.umd.cs.findbugs.bugReporter
Methods in edu.umd.cs.findbugs.bugReporter with parameters of type BugInstanceModifier and TypeMethodDescriptionvoidMaxRankDecorator.reportBug(BugInstance bugInstance) voidSuppressionDecorator.reportBug(BugInstance bugInstance) -
Uses of BugInstance in edu.umd.cs.findbugs.config
Methods in edu.umd.cs.findbugs.config with parameters of type BugInstanceModifier and TypeMethodDescriptionbooleanProjectFilterSettings.displayWarning(BugInstance bugInstance) Return whether or not a warning should be displayed, according to the project filter settings. -
Uses of BugInstance in edu.umd.cs.findbugs.detect
Methods in edu.umd.cs.findbugs.detect that return BugInstanceModifier and TypeMethodDescriptionCheckExpectedWarnings.makeWarning(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated.Methods in edu.umd.cs.findbugs.detect with parameters of type BugInstanceModifier and TypeMethodDescriptionprotected voidAbstractAssertDetector.reportBug(BugInstance bug) protected abstract voidBuildUnconditionalParamDerefDatabase.reportBug(BugInstance bug) voidFindBugsSummaryStats.reportBug(BugInstance bug) protected voidNoteUnconditionalParamDerefs.reportBug(BugInstance bug) protected voidTrainUnconditionalDerefParams.reportBug(BugInstance bug) Method parameters in edu.umd.cs.findbugs.detect with type arguments of type BugInstanceModifier and TypeMethodDescriptionvoidCheckExpectedWarnings.checkAnnotation(String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd) Deprecated. -
Uses of BugInstance in edu.umd.cs.findbugs.filter
Methods in edu.umd.cs.findbugs.filter with parameters of type BugInstanceModifier and TypeMethodDescriptionbooleanAndMatcher.match(BugInstance bugInstance) booleanAnnotationMatcher.match(BugInstance bugInstance) booleanBugMatcher.match(BugInstance bugInstance) booleanClassMatcher.match(BugInstance bugInstance) booleanConfidenceMatcher.match(BugInstance bugInstance) booleanFieldMatcher.match(BugInstance bugInstance) booleanFilter.match(BugInstance bugInstance) booleanFirstVersionMatcher.match(BugInstance bugInstance) booleanLastVersionMatcher.match(BugInstance bugInstance) booleanLocalMatcher.match(BugInstance bugInstance) booleanMatcher.match(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.booleanMethodMatcher.match(BugInstance bugInstance) booleanNotMatcher.match(BugInstance bugInstance) booleanOrMatcher.match(BugInstance bugInstance) booleanPriorityMatcher.match(BugInstance bugInstance) booleanRankMatcher.match(BugInstance bugInstance) booleanSourceMatcher.match(BugInstance bugInstance) booleanTypeMatcher.match(BugInstance bugInstance) -
Uses of BugInstance in edu.umd.cs.findbugs.gui2
Methods in edu.umd.cs.findbugs.gui2 that return BugInstanceMethods in edu.umd.cs.findbugs.gui2 with parameters of type BugInstanceModifier and TypeMethodDescriptionbooleanSuppressionMatcher.add(BugInstance bugInstance) Deprecated.MainFrameComponentFactory.bugSummaryComponent(String str, BugInstance bug) Creates bug summary component.voidSourceCodeDisplay.displaySource(BugInstance bug, SourceLineAnnotation source) abstract StringSortables.getFrom(BugInstance bug) BugTreeModel.getPathToBug(BugInstance b) BugTreeModel.getPathToNewlyUnsuppressedBug(BugInstance b) static MatcherFilterFactory.makeMatcher(Collection<Sortables> sortables, BugInstance bug) booleanCompoundMatcher.match(BugInstance bugInstance) Deprecated.booleanFilterMatcher.match(BugInstance bugInstance) Deprecated.booleanStackedFilterMatcher.match(BugInstance bugInstance) Deprecated.booleanSuppressionMatcher.match(BugInstance bugInstance) Deprecated.booleanViewFilter.show(BugInstance b) booleanViewFilter.showIgnoringPackagePrefixes(BugInstance b) -
Uses of BugInstance in edu.umd.cs.findbugs.props
Methods in edu.umd.cs.findbugs.props with parameters of type BugInstanceModifier and TypeMethodDescriptionvoidWarningPropertySet.decorateBugInstance(BugInstance bugInstance) Decorate given BugInstance with properties.