Uses of Class
edu.umd.cs.findbugs.detect.Stream
Packages that use Stream
-
Uses of Stream in edu.umd.cs.findbugs.detect
Subclasses with type arguments of type Stream in edu.umd.cs.findbugs.detectModifier and TypeClassDescriptionfinal classA Detector to look for streams that are opened in a method, do not escape the method, and are not closed on all paths out of the method.Classes in edu.umd.cs.findbugs.detect that implement interfaces with type arguments of type StreamModifier and TypeClassDescriptionclassA Stream object marks the location in the code where a stream is created.classResource tracker which determines where streams are created, and how they are used within the method.Fields in edu.umd.cs.findbugs.detect declared as StreamModifier and TypeFieldDescriptionfinal StreamStreamEscape.sourcefinal StreamFindOpenStream.PotentialOpenStream.streamprivate final StreamStreamFrameModelingVisitor.streamFields in edu.umd.cs.findbugs.detect with type parameters of type StreamModifier and TypeFieldDescriptionStreamEquivalenceClass.memberSetprivate ResourceCollection<Stream> StreamResourceTracker.resourceCollectionprivate final Map<Stream, StreamEquivalenceClass> StreamResourceTracker.streamEquivalenceMapMap of individual streams to equivalence classes.StreamResourceTracker.streamOpenLocationMapMap of locations where streams are opened to the actual Stream objects.StreamResourceTracker.uninterestingStreamEscapeSetSet of all open locations and escapes of uninteresting streams.Methods in edu.umd.cs.findbugs.detect that return StreamModifier and TypeMethodDescriptionAnyMethodReturnValueStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) InstanceFieldLoadStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) IOStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) MethodReturnValueStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) StaticFieldLoadStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) StreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) Determine if a Stream is created at given location.StreamResourceTracker.isResourceCreation(BasicBlock basicBlock, org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg) Stream.setIgnoreImplicitExceptions(boolean enable) Mark whether or not implicit exception edges should be ignored by ResourceValueAnalysis when determining whether or not stream is closed on all paths out of method.Stream.setInteresting(String bugType) Mark this Stream as interesting.Stream.setIsOpenOnCreation(boolean enable) Mark whether or not Stream is open as soon as it is created, or whether a later method or constructor must explicitly open it.Methods in edu.umd.cs.findbugs.detect that return types with arguments of type StreamModifier and TypeMethodDescriptionStreamEquivalenceClass.memberIterator()Get Iterator over the members of the class.Methods in edu.umd.cs.findbugs.detect with parameters of type StreamModifier and TypeMethodDescriptionvoidAdd a single member to the equivalence class.voidStreamResourceTracker.addStreamEscape(Stream source, Location target) Indicate that a stream escapes at the given target Location.voidStreamResourceTracker.addStreamOpenLocation(Location streamOpenLocation, Stream stream) Indicate that a stream is constructed at this Location.intStreamResourceTracker.createVisitor(Stream resource, org.apache.bcel.generic.ConstantPoolGen cpg) StreamResourceTracker.getStreamEquivalenceClass(Stream stream) Get the equivalence class for given stream.booleanStreamResourceTracker.ignoreExceptionEdge(Edge edge, Stream resource, org.apache.bcel.generic.ConstantPoolGen cpg) booleanStreamResourceTracker.ignoreImplicitExceptions(Stream resource) voidFindOpenStream.inspectResult(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, CFG cfg, Dataflow<ResourceValueFrame, ResourceValueAnalysis<Stream>> dataflow, Stream stream) booleanStreamResourceTracker.isParamInstance(Stream resource, int slot) booleanStreamResourceTracker.isResourceClose(BasicBlock basicBlock, org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg, Stream resource, ResourceValueFrame frame) booleanStreamResourceTracker.isResourceOpen(BasicBlock basicBlock, org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg, Stream resource, ResourceValueFrame frame) booleanStreamResourceTracker.isUninterestingStreamEscape(Stream stream) Determine if an uninteresting stream escapes at given location.Method parameters in edu.umd.cs.findbugs.detect with type arguments of type StreamModifier and TypeMethodDescriptionvoidFindOpenStream.analyzeMethod(ClassContext classContext, org.apache.bcel.classfile.Method method, StreamResourceTracker resourceTracker, ResourceCollection<Stream> resourceCollection) voidFindOpenStream.inspectResult(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, CFG cfg, Dataflow<ResourceValueFrame, ResourceValueAnalysis<Stream>> dataflow, Stream stream) voidStreamResourceTracker.setResourceCollection(ResourceCollection<Stream> resourceCollection) Set the precomputed ResourceCollection for the method.Constructors in edu.umd.cs.findbugs.detect with parameters of type StreamModifierConstructorDescriptionPotentialOpenStream(String bugType, int priority, Stream stream) StreamEscape(Stream source, Location target) Constructor.StreamFrameModelingVisitor(org.apache.bcel.generic.ConstantPoolGen cpg, StreamResourceTracker resourceTracker, Stream stream)