Uses of Class
edu.umd.cs.findbugs.visitclass.PreorderVisitor
Packages that use PreorderVisitor
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.A bytecode analysis framework for BCEL, providing CFG construction, generic
dataflow analysis, and a variety of specific dataflow analyses.
-
Uses of PreorderVisitor in edu.umd.cs.findbugs
Subclasses of PreorderVisitor in edu.umd.cs.findbugsModifier and TypeClassDescriptionclass
Base class for Detectors which want to extend DismantleBytecode.(package private) static class
Methods in edu.umd.cs.findbugs with parameters of type PreorderVisitorModifier and TypeMethodDescriptionBugInstance.addClass
(PreorderVisitor visitor) Add a class annotation for the class that the visitor is currently visiting.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.addField
(PreorderVisitor visitor) BugInstance.addMethod
(PreorderVisitor visitor) Add a method annotation for the method which the given visitor is currently visiting.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.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.addSuperclass
(PreorderVisitor visitor) Add a class annotation for the superclass of the class the visitor is currently visiting.BugInstance.addVisitedField
(PreorderVisitor visitor) Add a field annotation for the field which is being visited by given visitor.static FieldAnnotation
FieldAnnotation.fromVisitedField
(PreorderVisitor visitor) Factory method.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.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 MethodAnnotation
MethodAnnotation.fromVisitedMethod
(PreorderVisitor visitor) Factory method to create a MethodAnnotation from the method the given visitor is currently visiting.static SourceLineAnnotation
SourceLineAnnotation.fromVisitedMethod
(PreorderVisitor visitor) Factory method for creating a source line annotation describing an entire method.private static org.apache.bcel.classfile.LineNumberTable
SourceLineAnnotation.getLineNumberTable
(PreorderVisitor visitor) private int
OpcodeStack.resetForMethodEntry0
(PreorderVisitor visitor) -
Uses of PreorderVisitor in edu.umd.cs.findbugs.ba
Subclasses of PreorderVisitor in edu.umd.cs.findbugs.baModifier and TypeClassDescription(package private) static class
(package private) static class
Methods in edu.umd.cs.findbugs.ba with parameters of type PreorderVisitorModifier and TypeMethodDescriptionstatic XField
XFactory.createXField
(PreorderVisitor visitor) Create an XField object from the field currently being visited by the given PreorderVisitor.static XMethod
XFactory.createXMethod
(PreorderVisitor visitor) Create an XMethod object from the method currently being visited by the given PreorderVisitor. -
Uses of PreorderVisitor in edu.umd.cs.findbugs.bcel
Subclasses of PreorderVisitor in edu.umd.cs.findbugs.bcelModifier and TypeClassDescriptionclass
Base class for Detectors which want to perform a preorder traversal of the classfile including visiting Annotations.class
Base class for Detectors that want to scan the bytecode of a method and use an opcode stack.static class
class
Base class for Detectors which want to perform a preorder traversal of the classfile. -
Uses of PreorderVisitor in edu.umd.cs.findbugs.detect
Subclasses of PreorderVisitor in edu.umd.cs.findbugs.detectModifier and TypeClassDescriptionclass
Abstract base class for finding assertionsclass
class
if we get from a ConcurrentHashMap and assign to a variable...class
class
class
class
class
class
class
Scan application classes for CheckReturnValue annotations.class
Build the interprocedural call graph.class
Deprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.class
Builds the database of string parameters passed from method to method unchanged.class
Detector to find private methods that are never called.class
class
class
class
class
class
class
class
This detector can find constructors that throw exception.class
class
class
Finds invocations of JDK methods that rely on the default platform encoding.class
class
A detector that checks for lines in JUnit tests that look like `assertTrue(object instanceof Class)` and discourages them.class
class
class
class
class
class
class
class
class
This detector is currently disabled by default.class
class
class
class
class
This detector can find Assertions that try to validate method arguments.class
This detector can find assertions that violate the EXP06 rule.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Detector to find private methods that are never called.class
class
class
class
A Detector to look for useless control flow.class
This detector finds all the vulnerable methods which uses Security Manager to perform some security check but are declared non-final and non-private in a non-final class.class
class
class
class
class
Find comparisons involving values computed with bitwise operations whose outcomes are fixed at compile time.class
Use whenever possible String.indexOf(int) instead of String.indexOf(String), or String.lastIndexOf(int) instead of String.lastIndexOf(String).class
class
class
Find occurrences of collection.toArray( new Foo[0] ); This causes another memory allocation through reflection Much better to do collection.toArray( new Foo[collection.size()] );class
class
class
class
class
class
class
class
class
class
We found a problem with the new OpenJDK that everyone is now using to compile and run java code.class
Look for calls to methods where the return value is erroneously ignored.class
class
class
class
class
class
class
class
class
class
Scan classes for @CheckReturnValue annotationsclass
Scan methods for directly-relevant type qualifiers, building the DirectlyRelevantTypeQualifiersDatabase.class
class
Deprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.class
class
Detector to find calls to Number constructors with base type argument in Java 5 or newer bytecode.class
Methods with "Optional" return type should never return null.class
class
class
class
class
finds public classes that use 'this' as a semaphore, which can cause conflicts if clients of this class use an instance of this class as their own synchronization point.class
class
class
class
class
class
Detector to find private methods that are never called.class
class
class
RuntimeExceptionCaptureclass
class
class
Detector for static fields of typeCalendar
orDateFormat
and their subclasses.class
Find occurrences of using the String "+" or "+=" operators within a loop.class
Find occurrences of a instanceof b where it can be determined statically whether this is true or false.class
looks for calls to Thread.interrupted from a non static context, especially when that context is not 'currentThread()'.class
class
class
class
class
class
class
class
class
class
Deprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.class
Base class for simple type checking detectors which tests if the method returns null references for specific types.class
class
class
Find occurrences of Math using constants, where the result of the calculation can be determined statically.class
class
equals and hashCode are blocking methods on URL's.class
class
class
class
class
class
-
Uses of PreorderVisitor in edu.umd.cs.findbugs.visitclass
Subclasses of PreorderVisitor in edu.umd.cs.findbugs.visitclassModifier and TypeClassDescriptionclass
Subclass of PreorderVisitor that visits annotations on classes, fields, methods, and method parameters.class