Uses of Interface
edu.umd.cs.findbugs.ba.XMethod
Packages that use XMethod
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.
Support for analyzing code containing JSR-305 type qualifier annotations.
Implementation of dataflow analysis for checking whether obligations to close streams and other resources
(e.g., database objects) are satisfied.
Classes of objects that are the result of executing an analysis
engine on a class or method. The classes in this particular package are
those that are independent of any particular bytecode-analysis framework
(e.g., BCEL or ASM). Two important classes in this package are
ClassData, which represents the raw data of a class, and ClassInfo,
which represents symbolic information parsed from the class data.
-
Uses of XMethod in edu.umd.cs.findbugs
Fields in edu.umd.cs.findbugs declared as XMethodMethods in edu.umd.cs.findbugs that return XMethodModifier and TypeMethodDescriptionstatic XMethod
Lookup.findSuperImplementorAsXMethod
(org.apache.bcel.classfile.JavaClass clazz, String name, String signature, BugReporter bugReporter) OpcodeStack.Item.getReturnValueOf()
MethodAnnotation.toXMethod()
Convert to an XMethod.Methods in edu.umd.cs.findbugs with parameters of type XMethodModifier and TypeMethodDescriptionBugInstance.addCalledMethod
(XMethod m) BugInstance.addClassAndMethod
(XMethod xMethod) Add a MethodAnnotation from an XMethod.static SourceLineAnnotation
SourceLineAnnotation.forEntireMethod
(org.apache.bcel.classfile.JavaClass javaClass, XMethod xmethod) Create a SourceLineAnnotation covering an entire method.static MethodAnnotation
MethodAnnotation.fromXMethod
(XMethod xmethod) Create a MethodAnnotation from an XMethod.Method parameters in edu.umd.cs.findbugs with type arguments of type XMethodModifier and TypeMethodDescriptionBugInstance.addEqualsMethodUsed
(Collection<XMethod> equalsMethods) -
Uses of XMethod in edu.umd.cs.findbugs.ba
Classes in edu.umd.cs.findbugs.ba that implement XMethodModifier and TypeClassDescriptionclass
(package private) class
XMethod implementation for unresolvable methods.Fields in edu.umd.cs.findbugs.ba declared as XMethodModifier and TypeFieldDescriptionprivate final XMethod
MethodUnprofitableException.method
private final XMethod
XMethodParameter.method
Fields in edu.umd.cs.findbugs.ba with type parameters of type XMethodModifier and TypeFieldDescription(package private) static final AnalysisLocal
<MapCache<XMethod, BitSet>> ClassContext.cachedBitsets_AL
(package private) static final AnalysisLocal
<MapCache<XMethod, Set<Integer>>> ClassContext.cachedLoopExits_AL
XFactory.calledMethods
FieldSummary.fieldsWritten
private final Map
<XMethod, MethodHash> ClassHash.methodHashMap
private final Map
<MethodDescriptor, XMethod> XFactory.methods
FieldSummary.nonVoidSuperConstructorsCalled
FieldSummary.nonVoidSuperConstructorsCalled
private final Map
<XMethod, Set<ProgramPoint>> FieldSummary.selfMethodsCalledFromConstructor
Methods in edu.umd.cs.findbugs.ba that return XMethodModifier and TypeMethodDescriptionUnresolvedXMethod.bridgeFrom()
XMethod.bridgeFrom()
UnresolvedXMethod.bridgeTo()
XMethod.bridgeTo()
If nonnull, then this method is a synthetic method that overrides a method in a superclass.static XMethod
XFactory.createReferencedXMethod
(DismantleBytecode visitor) static XMethod
XFactory.createXMethod
(JavaClassAndMethod classAndMethod) static XMethod
XFactory.createXMethod
(MethodDescriptor desc) static XMethod
XFactory.createXMethod
(MethodAnnotation ma) static XMethod
XFactory.createXMethod
(PreorderVisitor visitor) Create an XMethod object from the method currently being visited by the given PreorderVisitor.static XMethod
XFactory.createXMethod
(String className, String methodName, String methodSig, boolean isStatic) private static XMethod
XFactory.createXMethod
(String className, String methodName, String methodSig, int accessFlags) static XMethod
XFactory.createXMethod
(String className, org.apache.bcel.classfile.Method method) Create an XMethod object from a BCEL Method.static XMethod
XFactory.createXMethod
(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Create an XMethod object from a BCEL Method.static XMethod
XFactory.createXMethod
(org.apache.bcel.generic.InvokeInstruction invokeInstruction, org.apache.bcel.generic.ConstantPoolGen cpg) Create an XMethod object from an InvokeInstruction.static XMethod
XFactory.createXMethod
(org.apache.bcel.generic.MethodGen methodGen) static XMethod
XFactory.createXMethodUsingSlashedClassName
(String className, String methodName, String methodSig, boolean isStatic) static XMethod
Hierarchy2.findExactMethod
(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg, JavaClassAndMethodChooser chooser) Look up the method referenced by given InvokeInstruction.static XMethod
Hierarchy2.findFirstSuperMethod
(XMethod m) static XMethod
Hierarchy2.findInvocationLeastUpperBound
(XClass jClass, String methodName, String methodSig, boolean invokeStatic, boolean invokeInterface) static XMethod
Hierarchy2.findInvocationLeastUpperBound
(ClassDescriptor classDesc, String methodName, String methodSig, boolean invokeStatic, boolean invokeInterface) static XMethod
Hierarchy2.findInvocationLeastUpperBound
(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg, JavaClassAndMethodChooser methodChooser) static XMethod
Hierarchy2.findInvocationLeastUpperBound0
(XClass jClass, String methodName, String methodSig, boolean invokeStatic, boolean invokeInterface) XClass.findMatchingMethod
(MethodDescriptor descriptor) Find XMethod matching the name and signature of the supplied method MethodDescriptor.static XMethod
Hierarchy.findMethod
(ClassDescriptor classDesc, String methodName, String methodSig, boolean isStatic) Find a method in given class.static XMethod
Hierarchy2.findMethod
(ClassDescriptor classDescriptor, String methodName, String methodSig, boolean isStatic) XClass.findMethod
(MethodDescriptor descriptor) Find XMethod matching given MethodDescriptor.XClass.findMethod
(String methodName, String methodSig, boolean isStatic) Find an XMethod matching given parameters.static XMethod
Hierarchy.findXMethod
(org.apache.bcel.classfile.JavaClass[] classList, String methodName, String methodSig) Deprecated.static XMethod
Hierarchy.findXMethod
(org.apache.bcel.classfile.JavaClass[] classList, String methodName, String methodSig, JavaClassAndMethodChooser chooser) Deprecated.static XMethod
Hierarchy.findXMethod
(org.apache.bcel.classfile.JavaClass javaClass, String methodName, String methodSig, JavaClassAndMethodChooser chooser) Deprecated.AnalysisContext.getBridgeFrom
(MethodInfo m) AnalysisContext.getBridgeTo
(MethodInfo m) (package private) static XMethod
IncompatibleTypes.getInvokedMethod
(XClass xClass, String name, String sig, boolean isStatic) MethodUnprofitableException.getMethod()
XMethodParameter.getMethod()
FieldSummary.getSuperCall
(XMethod from) AbstractMethod.resolveAccessMethodForMethod()
XMethod.resolveAccessMethodForMethod()
private XMethod
XFactory.resolveXMethod
(MethodDescriptor originalDescriptor) private static XMethod
Hierarchy2.thisOrNothing
(XMethod m, JavaClassAndMethodChooser chooser) JavaClassAndMethod.toXMethod()
Convert to an XMethod.Methods in edu.umd.cs.findbugs.ba that return types with arguments of type XMethodModifier and TypeMethodDescriptionClassContext.cachedBitsets()
ClassContext.cachedLoopExits()
Hierarchy2.findSuperMethods
(XMethod m) XFactory.getCalledMethods()
XClass.getXMethods()
Hierarchy2.resolveMethodCallTargets
(org.apache.bcel.generic.InvokeInstruction invokeInstruction, TypeFrame typeFrame, org.apache.bcel.generic.ConstantPoolGen cpg) Resolve possible method call targets.Hierarchy2.resolveMethodCallTargets
(org.apache.bcel.generic.ReferenceType receiverType, org.apache.bcel.generic.InvokeInstruction invokeInstruction, org.apache.bcel.generic.ConstantPoolGen cpg) Resolve possible instance method call targets.Hierarchy2.resolveMethodCallTargets
(org.apache.bcel.generic.ReferenceType receiverType, org.apache.bcel.generic.InvokeInstruction invokeInstruction, org.apache.bcel.generic.ConstantPoolGen cpg, boolean receiverTypeIsExact) Resolve possible instance method call targets.Hierarchy2.resolveVirtualMethodCallTargets
(XMethod target, boolean receiverTypeIsExact, boolean invokeSpecial) Hierarchy2.resolveVirtualMethodCallTargets
(ClassDescriptor receiverDesc, String methodName, String methodSig, boolean receiverTypeIsExact, boolean invokeSpecial) Hierarchy2.resolveVirtualMethodCallTargets
(String receiverClassName, String methodName, String methodSig, boolean receiverTypeIsExact, boolean invokeSpecial) Methods in edu.umd.cs.findbugs.ba with parameters of type XMethodModifier and TypeMethodDescriptionvoid
AnalysisContext.analysisSkippedDueToInvokeDynamic
(XMethod m) boolean
Deprecated.boolean
Deprecated.private boolean
AnnotationDatabase.classDefinesMethod
(org.apache.bcel.classfile.JavaClass c, XMethod m) static String
SignatureConverter.convertMethodSignature
(XMethod xmethod) Convenience method for generating a method signature in human readable form.static boolean
PruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException
(XMethod xMethod) static Boolean
PruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException
(XMethod xMethod, org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Deprecated.static XMethod
Hierarchy2.findFirstSuperMethod
(XMethod m) Hierarchy2.findSuperMethods
(XMethod m) private static void
Hierarchy2.findSuperMethods
(ClassDescriptor c, XMethod m, Set<XMethod> accumulator) FieldSummary.getCalledFromSuperConstructor
(ClassDescriptor superClass, XMethod calledFromConstructor) private static String
XFactory.getDetailedSignature
(XMethod m2) FieldSummary.getFieldsWritten
(XMethod method) org.apache.bcel.classfile.ElementValue
JCIPAnnotationDatabase.getMethodAnnotation
(XMethod method, String annotationClass) ClassHash.getMethodHash
(XMethod method) Get method hash for given method.private CheckReturnValueAnnotation
CheckReturnAnnotationDatabase.getResolvedAnnotationOnConstructor
(XMethod m) FieldSummary.getSuperCall
(XMethod from) boolean
JCIPAnnotationDatabase.hasMethodAnnotation
(XMethod method, String annotationClass) boolean
boolean
XFactory.isCalledDirectlyOrIndirectly
(XMethod m) private boolean
XFactory.isCalledDirectlyOrIndirectly
(ClassDescriptor clazzDescriptor, XMethod m) static boolean
Hierarchy.isConcrete
(XMethod xmethod) Deprecated.boolean
XFactory.isInterned
(XMethod m) Deprecated.private boolean
PruneUnconditionalExceptionThrowerEdges.isUnconditionalThrower
(XMethod xMethod) static boolean
TestCaseDetector.likelyTestCase
(XMethod m) private AnnotationEnum
AnnotationDatabase.lookInOverriddenMethod
(Object originalQuery, String classToLookIn, XMethod originalMethod, boolean getMinimal) boolean
XFactory.nameAndSignatureIsCalled
(XMethod m) Deprecated.This method does not work as expected.boolean
INullnessAnnotationDatabase.parameterMustBeNonNull
(XMethod m, int param) Determine whether given parameter must be non-null.boolean
NullnessAnnotationDatabase.parameterMustBeNonNull
(XMethod m, int param) Deprecated.Hierarchy2.resolveVirtualMethodCallTargets
(XMethod target, boolean receiverTypeIsExact, boolean invokeSpecial) void
FieldSummary.sawSuperCall
(XMethod from, XMethod constructorInSuperClass) void
FieldSummary.setCalledFromSuperConstructor
(ProgramPoint from, XMethod calledFromConstructor) void
FieldSummary.setFieldsWritten
(XMethod method, Collection<XField> fields) void
ClassHash.setMethodHash
(XMethod method, byte[] methodHash) Set method hash for given method.private static XMethod
Hierarchy2.thisOrNothing
(XMethod m, JavaClassAndMethodChooser chooser) Method parameters in edu.umd.cs.findbugs.ba with type arguments of type XMethodModifier and TypeMethodDescriptionprivate static void
Hierarchy2.findSuperMethods
(ClassDescriptor c, XMethod m, Set<XMethod> accumulator) Constructors in edu.umd.cs.findbugs.ba with parameters of type XMethodModifierConstructorDescriptionJavaClassAndMethod
(XMethod method) Constructor.XMethodParameter
(XMethod m, int p) Create a new Method parameter reference -
Uses of XMethod in edu.umd.cs.findbugs.ba.ch
Fields in edu.umd.cs.findbugs.ba.ch declared as XMethodModifier and TypeFieldDescriptionprivate XMethod
InterproceduralCallGraphVertex.xmethod
private final XMethod
OverriddenMethodsVisitor.xmethod
Methods in edu.umd.cs.findbugs.ba.ch that return XMethodModifier and TypeMethodDescriptionInterproceduralCallGraphVertex.getXmethod()
OverriddenMethodsVisitor.getXmethod()
Methods in edu.umd.cs.findbugs.ba.ch with parameters of type XMethodModifier and TypeMethodDescriptionvoid
InterproceduralCallGraphVertex.setXmethod
(XMethod xmethod) protected abstract boolean
OverriddenMethodsVisitor.visitOverriddenMethod
(XMethod xmethod) Downcall method: will be called for each method overridden by the derived method object passed to the constructor.Constructors in edu.umd.cs.findbugs.ba.ch with parameters of type XMethod -
Uses of XMethod in edu.umd.cs.findbugs.ba.deref
Methods in edu.umd.cs.findbugs.ba.deref with parameters of type XMethodModifier and TypeMethodDescriptionprivate void
UnconditionalValueDerefAnalysis.checkNonNullReturnValue
(XMethod thisMethod, Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) If this is a method call instruction, check to see if any of the parameters are @NonNull, and treat them as dereferences. -
Uses of XMethod in edu.umd.cs.findbugs.ba.jsr305
Fields in edu.umd.cs.findbugs.ba.jsr305 declared as XMethodFields in edu.umd.cs.findbugs.ba.jsr305 with type parameters of type XMethodModifier and TypeFieldDescriptionprivate final HashMap
<XMethod, Map<Integer, Collection<AnnotationValue>>> TypeQualifierApplications.Data.directParameterAnnotations
Type qualifier annotations applied directly to method parameters.private final Map
<TypeQualifierValue<?>, DualKeyHashMap<XMethod, Integer, TypeQualifierAnnotation>> TypeQualifierApplications.Data.effectiveParameterAnnotations
Map of TypeQualifierValues to maps containing, for each XMethod/parameter, the effective TypeQualifierAnnotation (if any) for that XMethod/parameter.Methods in edu.umd.cs.findbugs.ba.jsr305 that return types with arguments of type XMethodModifier and TypeMethodDescriptionprivate static HashMap
<XMethod, Map<Integer, Collection<AnnotationValue>>> TypeQualifierApplications.getDirectParameterAnnotations()
private static Map
<TypeQualifierValue<?>, DualKeyHashMap<XMethod, Integer, TypeQualifierAnnotation>> TypeQualifierApplications.getEffectiveParameterAnnotations()
Methods in edu.umd.cs.findbugs.ba.jsr305 with parameters of type XMethodModifier and TypeMethodDescriptionprivate static void
Analysis.addEffectiveRelevantQualifiers
(HashSet<TypeQualifierValue<?>> result, XMethod xmethod) static void
Analysis.addKnownTypeQualifiersForParameters
(HashSet<? super TypeQualifierValue<?>> result, XMethod m) private static TypeQualifierAnnotation
TypeQualifierApplications.computeEffectiveTypeQualifierAnnotation
(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod, int parameter) static Collection
<TypeQualifierAnnotation> TypeQualifierApplications.getApplicableApplications
(XMethod o, int parameter) Get the Collection of resolved TypeQualifierAnnotations representing directly applied and default (outer scope) type qualifier annotations for given method parameter.private static Collection
<TypeQualifierAnnotation> TypeQualifierApplications.getApplicableScopedApplications
(XMethod o, int parameter) Get the collection of resolved TypeQualifierAnnotations for a given parameter, taking into account annotations applied to outer scopes (e.g., enclosing classes and packages.)protected BackwardTypeQualifierDataflow
BackwardTypeQualifierDataflowFactory.getDataflow
(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, IAnalysisCache analysisCache, MethodDescriptor methodDescriptor, TypeQualifierValue<?> typeQualifierValue) protected ForwardTypeQualifierDataflow
ForwardTypeQualifierDataflowFactory.getDataflow
(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, IAnalysisCache analysisCache, MethodDescriptor methodDescriptor, TypeQualifierValue<?> typeQualifierValue) protected abstract DataflowType
TypeQualifierDataflowFactory.getDataflow
(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, IAnalysisCache analysisCache, MethodDescriptor methodDescriptor1, TypeQualifierValue<?> typeQualifierValue) private static TypeQualifierAnnotation
TypeQualifierApplications.getDefaultTypeQualifierAnnotationForParameters
(XMethod xmethod, TypeQualifierValue<?> typeQualifierValue, boolean stopAtMethodScope) Get the default (outer-scope) TypeQualifierAnnotation on given method parameter.private static Collection
<AnnotationValue> TypeQualifierApplications.getDirectAnnotation
(XMethod m, int parameter) Get the direct annotations (if any) on given method parameter.static void
TypeQualifierApplications.getDirectApplications
(Set<TypeQualifierAnnotation> result, XMethod o, int parameter) Populate a Set of TypeQualifierAnnotations representing directly-applied type qualifier annotations on given method parameter.private static void
Analysis.getDirectlyRelevantTypeQualifiers
(XMethod xmethod, HashSet<TypeQualifierValue<?>> result) static TypeQualifierAnnotation
TypeQualifierApplications.getDirectTypeQualifierAnnotation
(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) Get the TypeQualifierAnnotation directly applied to given method parameter.static TypeQualifierAnnotation
TypeQualifierApplications.getEffectiveTypeQualifierAnnotation
(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) Get the effective TypeQualifierAnnotation on given method parameter.static TypeQualifierAnnotation
TypeQualifierApplications.getInheritedTypeQualifierAnnotation
(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) Get the effective inherited TypeQualifierAnnotation on the given instance method parameter.static TypeQualifierAnnotation
TypeQualifierApplications.getInheritedTypeQualifierAnnotation
(XMethod o, TypeQualifierValue<?> typeQualifierValue) Get the effective inherited TypeQualifierAnnotation on given instance method.(package private) static boolean
TypeQualifierDataflowAnalysis.isIdentifyFunctionForTypeQualifiers
(XMethod m) protected abstract TypeQualifierAnnotation
AbstractMethodAnnotationAccumulator.lookupAnnotation
(XMethod xm) protected TypeQualifierAnnotation
ParameterAnnotationAccumulator.lookupAnnotation
(XMethod xm) protected TypeQualifierAnnotation
ReturnTypeAnnotationAccumulator.lookupAnnotation
(XMethod xm) protected void
BackwardTypeQualifierDataflowFactory.populateDatabase
(BackwardTypeQualifierDataflow dataflow, ValueNumberDataflow vnaDataflow, XMethod xmethod, TypeQualifierValue<?> tqv) protected void
ForwardTypeQualifierDataflowFactory.populateDatabase
(ForwardTypeQualifierDataflow dataflow, ValueNumberDataflow vnaDataflow, XMethod xmethod, TypeQualifierValue<?> tqv) protected abstract void
TypeQualifierDataflowFactory.populateDatabase
(DataflowType dataflow, ValueNumberDataflow vnaDataflow, XMethod xmethod, TypeQualifierValue<?> tqv) protected boolean
AbstractMethodAnnotationAccumulator.visitOverriddenMethod
(XMethod xmethod) Constructors in edu.umd.cs.findbugs.ba.jsr305 with parameters of type XMethodModifierConstructorDescriptionprotected
AbstractMethodAnnotationAccumulator
(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod) BackwardTypeQualifierDataflowAnalysis
(DepthFirstSearch dfs, ReverseDepthFirstSearch rdfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, TypeQualifierValue<?> typeQualifierValue) Constructor.ForwardTypeQualifierDataflowAnalysis
(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, TypeQualifierValue<?> typeQualifierValue) Constructor.protected
ParameterAnnotationAccumulator
(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod, int parameter) Constructor.ReturnTypeAnnotationAccumulator
(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod) Constructor.TypeQualifierDataflowAnalysis
(XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, TypeQualifierValue<?> typeQualifierValue) Constructor. -
Uses of XMethod in edu.umd.cs.findbugs.ba.npe
Methods in edu.umd.cs.findbugs.ba.npe that return XMethodModifier and TypeMethodDescriptionTypeQualifierNullnessAnnotationDatabase.getXMethod
(String cName, String mName, String sig, boolean isStatic) Methods in edu.umd.cs.findbugs.ba.npe with parameters of type XMethodModifier and TypeMethodDescriptionstatic boolean
TypeQualifierNullnessAnnotationDatabase.assertsFirstParameterIsNonnull
(XMethod m) TypeQualifierNullnessAnnotationDatabase.getInheritedAnnotation
(XMethod m) TypeQualifierNullnessAnnotationDatabase.getInheritedAnnotation
(XMethod m, int parameter) PointerUsageRequiringNonNullValue.getPassedAsNonNullParameter
(XMethod m, int param) PointerUsageRequiringNonNullValue.getReturnFromNonNullMethod
(XMethod m) IsNullValueFrameModelingVisitor.getReturnValueNullness
(XMethod calledMethod) IsNullValue.markInformationAsComingFromReturnValueOfMethod
(XMethod methodInvoked) Convert to a value known because it was returned from a method in a method property database.boolean
TypeQualifierNullnessAnnotationDatabase.parameterMustBeNonNull
(XMethod m, int param) -
Uses of XMethod in edu.umd.cs.findbugs.ba.obl
Fields in edu.umd.cs.findbugs.ba.obl declared as XMethodModifier and TypeFieldDescriptionprivate final XMethod
InstructionActionCache.xmethod
private final XMethod
ObligationAnalysis.xmethod
Methods in edu.umd.cs.findbugs.ba.obl with parameters of type XMethodModifier and TypeMethodDescriptionObligationPolicyDatabase.addParameterDeletesObligationDatabaseEntry
(XMethod xmethod, Obligation obligation, ObligationPolicyDatabaseEntryType entryType) Add an appropriate policy database entry for parameters marked with the WillClose annotation.ObligationFactory.getParameterObligationTypes
(XMethod xmethod) Get array of Obligation types corresponding to the parameters of the given method.Constructors in edu.umd.cs.findbugs.ba.obl with parameters of type XMethodModifierConstructorDescriptionInstructionActionCache
(ObligationPolicyDatabase database, XMethod xmethod, org.apache.bcel.generic.ConstantPoolGen cpg, TypeDataflow typeDataflow) MatchMethodEntry
(XMethod xmethod, ObligationPolicyDatabaseActionType action, ObligationPolicyDatabaseEntryType entryType, Obligation... obligations) Constructor.ObligationAnalysis
(DepthFirstSearch dfs, XMethod xmethod, org.apache.bcel.generic.ConstantPoolGen cpg, ObligationFactory factory, ObligationPolicyDatabase database, TypeDataflow typeDataflow, IsNullValueDataflow invDataflow, IErrorLogger errorLogger) Constructor. -
Uses of XMethod in edu.umd.cs.findbugs.bytecode
Methods in edu.umd.cs.findbugs.bytecode with parameters of type XMethodModifier and TypeMethodDescriptionstatic boolean
MemberUtils.couldBeLambda
(XMethod m) Checks if the method could be a lambda. -
Uses of XMethod in edu.umd.cs.findbugs.classfile.analysis
Classes in edu.umd.cs.findbugs.classfile.analysis that implement XMethodMethods in edu.umd.cs.findbugs.classfile.analysis that return XMethodModifier and TypeMethodDescriptionMethodInfo.bridgeFrom()
MethodInfo.bridgeTo()
ClassInfo.findMatchingMethod
(MethodDescriptor descriptor) ClassInfo.findMethod
(MethodDescriptor descriptor) ClassInfo.findMethod
(String methodName, String methodSig, boolean isStatic) MethodInfo.resolveAccessMethodForMethod()
Methods in edu.umd.cs.findbugs.classfile.analysis that return types with arguments of type XMethod -
Uses of XMethod in edu.umd.cs.findbugs.detect
Fields in edu.umd.cs.findbugs.detect declared as XMethodModifier and TypeFieldDescriptionprivate final XMethod
FindPotentialSecurityCheckBasedOnUntrustedSource.CalleeInfo.calledMethod
private final XMethod
FindPotentialSecurityCheckBasedOnUntrustedSource.LambdaCallInfo.callerMethod
private XMethod
MethodReturnCheck.callSeen
private XMethod
MultipleInstantiationsOfSingletons.cloneMethod
(package private) XMethod
InitializationChain.InvocationInfo.constructor
(package private) XMethod
FindOverridableMethodCall.CallerInfo.method
(package private) XMethod
UncallableMethodOfAnonymousClass.potentialSuperCall
(package private) XMethod
FindPuzzlers.previousMethodInvocation
private final XMethod
ExplicitSerialization.readObject
private XMethod
FindBadEndOfStreamCheck.source
private final XMethod
ExplicitSerialization.writeObject
private final XMethod
CheckRelaxingNullnessAnnotation.DetectorNode.xmethod
(package private) XMethod
FindUnsatisfiedObligation.MethodChecker.xmethod
Fields in edu.umd.cs.findbugs.detect with type parameters of type XMethodModifier and TypeFieldDescriptionFindOverridableMethodCall.calleeToCallerMap
FindOverridableMethodCall.calleeToCallerMap
private final Map
<XMethod, FindOverridableMethodCall.CallerInfo> FindOverridableMethodCall.callerClones
private final Map
<XMethod, FindOverridableMethodCall.CallerInfo> FindOverridableMethodCall.callerConstructors
private final Map
<XMethod, FindOverridableMethodCall.CallerInfo> FindOverridableMethodCall.callerReadObjects
FindOverridableMethodCall.callerToCalleeMap
FindOverridableMethodCall.callerToCalleeMap
FindOverridableMethodCall.callsToOverridable
FindOverridableMethodCall.callsToOverridable
Naming.canonicalToXMethod
InitializationChain.constructorsInvokedInStaticInitializer
FunctionsThatMightBeMistakenForProcedures.doNotIgnore
FunctionsThatMightBeMistakenForProcedures.doNotIgnoreHigh
MultipleInstantiationsOfSingletons.instanceGetterMethods
FindPotentialSecurityCheckBasedOnUntrustedSource.methodsCalledInsidePrivilegedAction
FunctionsThatMightBeMistakenForProcedures.methodsSeen
MultipleInstantiationsOfSingletons.methodsUsingMonitor
FindPotentialSecurityCheckBasedOnUntrustedSource.nonFinalMethodsCalledOnParam
FunctionsThatMightBeMistakenForProcedures.okToIgnore
FindOverridableMethodCall.refCalleeToCallerMap
InitializationChain.staticFieldsRead
Methods in edu.umd.cs.findbugs.detect that return XMethodModifier and TypeMethodDescriptionstatic XMethod
private XMethod
ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass.getConstructorThatCallsSuperConstructor
(XMethod superConstructor) private XMethod
FindOverridableMethodCall.getIndirectlyCalledOverridable
(XMethod caller) private XMethod
FindOverridableMethodCall.getIndirectlyCalledOverridable
(XMethod caller, Set<XMethod> visited) private XMethod
FindOverridableMethodCall.superClone
(XClass clazz) Methods in edu.umd.cs.findbugs.detect with parameters of type XMethodModifier and TypeMethodDescriptionvoid
BuildObligationPolicyDatabase.addObligations
(XMethod xmethod) private void
BuildObligationPolicyDatabase.addParameterDeletesObligationDatabaseEntry
(XMethod xmethod, Obligation obligation, ObligationPolicyDatabaseEntryType entryType) Add an appropriate policy database entry for parameters marked with the WillClose annotation.private void
FindPotentialSecurityCheckBasedOnUntrustedSource.addToMethodsCalledInsidePrivilegedAction
(XMethod calledMethod, OpcodeStack.Item object) private void
FindPotentialSecurityCheckBasedOnUntrustedSource.addToNonFinalMethodsCalledOnParam
(ClassDescriptor calledClass, XMethod calledMethod, OpcodeStack.Item object) private void
CheckTypeQualifiers.annotateWarningWithSourceSinkInfo
(BugInstance warning, XMethod xMethod, ValueNumber vn, SourceSinkInfo sourceSinkInfo) private void
CheckExpectedWarnings.check
(XMethod xmethod, ClassDescriptor annotation, boolean expectWarnings, int priority) Deprecated.private boolean
FindOverridableMethodCall.checkAndRecordCallBetweenNonOverridableMethods
(XMethod caller, XMethod callee) private boolean
FindOverridableMethodCall.checkAndRecordCallFromClone
(XMethod clone, XMethod callee, SourceLineAnnotation sourceLine) private boolean
FindOverridableMethodCall.checkAndRecordCallFromConstructor
(XMethod constructor, XMethod callee, SourceLineAnnotation sourceLine) private void
FindOverridableMethodCall.checkAndRecordCallFromReadObject
(XMethod readObject, XMethod callee, SourceLineAnnotation sourceLine) private boolean
FindOverridableMethodCall.checkAndRecordCallToOverridable
(XMethod caller, XMethod overridable) private void
CheckTypeQualifiers.checkDataflow
(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ValueNumberDataflow vnaDataflow, ForwardTypeQualifierDataflow forwardDataflow, BackwardTypeQualifierDataflow backwardDataflow) (package private) boolean
FindOverridableMethodCall.checkDirectCase
(XMethod caller, XMethod method, String message, int priority, SourceLineAnnotation sourceLine) private void
CheckTypeQualifiers.checkForConflictingValues
(XMethod xMethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) private void
CheckTypeQualifiers.checkForEqualityTest
(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, Location loc, ValueNumberFrame factAtLocation) private final boolean
CheckRelaxingNullnessAnnotation.DetectorNode.checkMethod
(XMethod method) private boolean
Naming.checkNonSuper
(XMethod m, Set<XMethod> others) private void
CheckTypeQualifiers.checkQualifier
(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ForwardTypeQualifierDataflowFactory forwardDataflowFactory, BackwardTypeQualifierDataflowFactory backwardDataflowFactory, ValueNumberDataflow vnaDataflow) Check a specific TypeQualifierValue on a method.private boolean
Naming.checkSuper
(XMethod m, Set<XMethod> others) private void
CheckTypeQualifiers.checkValueSources
(XMethod xMethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ValueNumberDataflow vnaDataflow, ForwardTypeQualifierDataflow forwardDataflow, BackwardTypeQualifierDataflow backwardDataflow) static boolean
Naming.confusingMethodNamesWrongCapitalization
(XMethod m1, XMethod m2) static boolean
Naming.confusingMethodNamesWrongPackage
(XMethod m1, XMethod m2) static XMethod
private void
CheckTypeQualifiers.emitDataflowWarning
(XMethod xMethod, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, ValueNumber vn, FlowValue forward, FlowValue backward, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) private void
CheckTypeQualifiers.emitSourceWarning
(String bugType, XMethod xMethod, TypeQualifierValue<?> typeQualifierValue, FlowValue backwardsFlowValue, TypeQualifierValueSet backwardsFact, SourceSinkInfo source, ValueNumber vn, Location location) private InterproceduralCallGraphVertex
BuildInterproceduralCallGraph.findVertex
(XMethod xmethod) Find the InterproceduralCallGraphVertex for given XMethod.private XMethod
ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass.getConstructorThatCallsSuperConstructor
(XMethod superConstructor) FindOverridableMethodCall.getIndirectCallerClone
(XMethod callee) FindOverridableMethodCall.getIndirectCallerConstructor
(XMethod callee) FindOverridableMethodCall.getIndirectCallerReadObject
(XMethod callee) FindOverridableMethodCall.getIndirectCallerSpecial
(XMethod callee, Map<XMethod, FindOverridableMethodCall.CallerInfo> map) FindOverridableMethodCall.getIndirectCallerSpecial
(XMethod callee, Map<XMethod, FindOverridableMethodCall.CallerInfo> map, Set<XMethod> visited) private XMethod
FindOverridableMethodCall.getIndirectlyCalledOverridable
(XMethod caller) private XMethod
FindOverridableMethodCall.getIndirectlyCalledOverridable
(XMethod caller, Set<XMethod> visited) private void
BuildObligationPolicyDatabase.handleWillCloseWhenClosed
(XMethod xmethod, Obligation deletedObligation) Handle a method with a WillCloseWhenClosed parameter annotation.private static boolean
FindNoSideEffectMethods.hasOtherImplementations
(XMethod xMethod) private boolean
MethodReturnCheck.isCallMockitoVerifyInvocation
(XMethod method) private boolean
FindBadEndOfStreamCheck.isFileRead
(XMethod method) FindPotentialSecurityCheckBasedOnUntrustedSource.lookForCalledOutside
(org.apache.bcel.classfile.JavaClass callerClass, XMethod callerMethod, XClass calledClass, XMethod calledMethod, String argumentName) private void
FindPotentialSecurityCheckBasedOnUntrustedSource.reportBug
(org.apache.bcel.classfile.JavaClass cls, XMethod method, SourceLineAnnotation srcLine, FindPotentialSecurityCheckBasedOnUntrustedSource.CalleeInfo calleInfo, SourceLineAnnotation insideSrcLine) private void
private boolean
FindOverridableMethodCall.reportIfOverridableCallInReadObject
(XMethod caller, XMethod method, SourceLineAnnotation sourceLine) private boolean
FindNullDeref.safeCallToPrimateParseMethod
(XMethod calledMethod, Location location) private boolean
FindOverridableMethodCall.shouldIgnoreCallInReadObject
(XMethod method) private void
NoteDirectlyRelevantTypeQualifiers.updateApplicableAnnotations
(XMethod m) Method parameters in edu.umd.cs.findbugs.detect with type arguments of type XMethodModifier and TypeMethodDescriptionprivate boolean
Naming.allAbstract
(Set<XMethod> overrides) private boolean
FindRefComparison.checkForWeirdEquals
(String lhsSig, String rhsSig, Set<XMethod> targets) private boolean
Naming.checkNonSuper
(XMethod m, Set<XMethod> others) private boolean
Naming.checkSuper
(XMethod m, Set<XMethod> others) FindOverridableMethodCall.getIndirectCallerSpecial
(XMethod callee, Map<XMethod, FindOverridableMethodCall.CallerInfo> map) FindOverridableMethodCall.getIndirectCallerSpecial
(XMethod callee, Map<XMethod, FindOverridableMethodCall.CallerInfo> map, Set<XMethod> visited) FindOverridableMethodCall.getIndirectCallerSpecial
(XMethod callee, Map<XMethod, FindOverridableMethodCall.CallerInfo> map, Set<XMethod> visited) private XMethod
FindOverridableMethodCall.getIndirectlyCalledOverridable
(XMethod caller, Set<XMethod> visited) Constructors in edu.umd.cs.findbugs.detect with parameters of type XMethodModifierConstructorDescription(package private)
CalleeInfo
(ClassDescriptor cls, XMethod called, String name, SourceLineAnnotation line) (package private)
(package private)
DetectorNode
(int access, String name, String desc, String signature, String[] exceptions, XMethod xmethod) InvocationInfo
(XMethod constructor, int pc) (package private)
LambdaCallInfo
(org.apache.bcel.classfile.JavaClass cls, XMethod met, SourceLineAnnotation line, String[] argNames) -
Uses of XMethod in edu.umd.cs.findbugs.visitclass
Fields in edu.umd.cs.findbugs.visitclass declared as XMethodMethods in edu.umd.cs.findbugs.visitclass that return XMethodModifier and TypeMethodDescriptionPreorderVisitor.getXMethod()
DismantleBytecode.getXMethodOperand()
PruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException(XMethod)
instead