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 XMethodLookup.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 SourceLineAnnotationSourceLineAnnotation.forEntireMethod(org.apache.bcel.classfile.JavaClass javaClass, XMethod xmethod) Create a SourceLineAnnotation covering an entire method.static MethodAnnotationMethodAnnotation.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) classXMethod implementation for unresolvable methods.Fields in edu.umd.cs.findbugs.ba declared as XMethodModifier and TypeFieldDescriptionprivate final XMethodMethodUnprofitableException.methodprivate final XMethodXMethodParameter.methodFields 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_ALXFactory.calledMethodsFieldSummary.fieldsWrittenprivate final Map<XMethod, MethodHash> ClassHash.methodHashMapprivate final Map<MethodDescriptor, XMethod> XFactory.methodsFieldSummary.nonVoidSuperConstructorsCalledFieldSummary.nonVoidSuperConstructorsCalledprivate final Map<XMethod, Set<ProgramPoint>> FieldSummary.selfMethodsCalledFromConstructorMethods 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 XMethodXFactory.createReferencedXMethod(DismantleBytecode visitor) static XMethodXFactory.createXMethod(JavaClassAndMethod classAndMethod) static XMethodXFactory.createXMethod(MethodDescriptor desc) static XMethodXFactory.createXMethod(MethodAnnotation ma) static XMethodXFactory.createXMethod(PreorderVisitor visitor) Create an XMethod object from the method currently being visited by the given PreorderVisitor.static XMethodXFactory.createXMethod(String className, String methodName, String methodSig, boolean isStatic) private static XMethodXFactory.createXMethod(String className, String methodName, String methodSig, int accessFlags) static XMethodXFactory.createXMethod(String className, org.apache.bcel.classfile.Method method) Create an XMethod object from a BCEL Method.static XMethodXFactory.createXMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Create an XMethod object from a BCEL Method.static XMethodXFactory.createXMethod(org.apache.bcel.generic.InvokeInstruction invokeInstruction, org.apache.bcel.generic.ConstantPoolGen cpg) Create an XMethod object from an InvokeInstruction.static XMethodXFactory.createXMethod(org.apache.bcel.generic.MethodGen methodGen) static XMethodXFactory.createXMethodUsingSlashedClassName(String className, String methodName, String methodSig, boolean isStatic) static XMethodHierarchy2.findExactMethod(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg, JavaClassAndMethodChooser chooser) Look up the method referenced by given InvokeInstruction.static XMethodHierarchy2.findFirstSuperMethod(XMethod m) static XMethodHierarchy2.findInvocationLeastUpperBound(XClass jClass, String methodName, String methodSig, boolean invokeStatic, boolean invokeInterface) static XMethodHierarchy2.findInvocationLeastUpperBound(ClassDescriptor classDesc, String methodName, String methodSig, boolean invokeStatic, boolean invokeInterface) static XMethodHierarchy2.findInvocationLeastUpperBound(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg, JavaClassAndMethodChooser methodChooser) static XMethodHierarchy2.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 XMethodHierarchy.findMethod(ClassDescriptor classDesc, String methodName, String methodSig, boolean isStatic) Find a method in given class.static XMethodHierarchy2.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 XMethodHierarchy.findXMethod(org.apache.bcel.classfile.JavaClass[] classList, String methodName, String methodSig) Deprecated.static XMethodHierarchy.findXMethod(org.apache.bcel.classfile.JavaClass[] classList, String methodName, String methodSig, JavaClassAndMethodChooser chooser) Deprecated.static XMethodHierarchy.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 XMethodIncompatibleTypes.getInvokedMethod(XClass xClass, String name, String sig, boolean isStatic) MethodUnprofitableException.getMethod()XMethodParameter.getMethod()FieldSummary.getSuperCall(XMethod from) AbstractMethod.resolveAccessMethodForMethod()XMethod.resolveAccessMethodForMethod()private XMethodXFactory.resolveXMethod(MethodDescriptor originalDescriptor) private static XMethodHierarchy2.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 TypeMethodDescriptionvoidAnalysisContext.analysisSkippedDueToInvokeDynamic(XMethod m) booleanDeprecated.booleanDeprecated.private booleanAnnotationDatabase.classDefinesMethod(org.apache.bcel.classfile.JavaClass c, XMethod m) static StringSignatureConverter.convertMethodSignature(XMethod xmethod) Convenience method for generating a method signature in human readable form.static booleanPruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException(XMethod xMethod) static BooleanPruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException(XMethod xMethod, org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Deprecated.static XMethodHierarchy2.findFirstSuperMethod(XMethod m) Hierarchy2.findSuperMethods(XMethod m) private static voidHierarchy2.findSuperMethods(ClassDescriptor c, XMethod m, Set<XMethod> accumulator) FieldSummary.getCalledFromSuperConstructor(ClassDescriptor superClass, XMethod calledFromConstructor) private static StringXFactory.getDetailedSignature(XMethod m2) FieldSummary.getFieldsWritten(XMethod method) org.apache.bcel.classfile.ElementValueJCIPAnnotationDatabase.getMethodAnnotation(XMethod method, String annotationClass) ClassHash.getMethodHash(XMethod method) Get method hash for given method.private CheckReturnValueAnnotationCheckReturnAnnotationDatabase.getResolvedAnnotationOnConstructor(XMethod m) FieldSummary.getSuperCall(XMethod from) booleanJCIPAnnotationDatabase.hasMethodAnnotation(XMethod method, String annotationClass) booleanbooleanXFactory.isCalledDirectlyOrIndirectly(XMethod m) private booleanXFactory.isCalledDirectlyOrIndirectly(ClassDescriptor clazzDescriptor, XMethod m) static booleanHierarchy.isConcrete(XMethod xmethod) Deprecated.booleanXFactory.isInterned(XMethod m) Deprecated.private booleanPruneUnconditionalExceptionThrowerEdges.isUnconditionalThrower(XMethod xMethod) static booleanTestCaseDetector.likelyTestCase(XMethod m) private AnnotationEnumAnnotationDatabase.lookInOverriddenMethod(Object originalQuery, String classToLookIn, XMethod originalMethod, boolean getMinimal) booleanXFactory.nameAndSignatureIsCalled(XMethod m) Deprecated.This method does not work as expected.booleanINullnessAnnotationDatabase.parameterMustBeNonNull(XMethod m, int param) Determine whether given parameter must be non-null.booleanNullnessAnnotationDatabase.parameterMustBeNonNull(XMethod m, int param) Deprecated.Hierarchy2.resolveVirtualMethodCallTargets(XMethod target, boolean receiverTypeIsExact, boolean invokeSpecial) voidFieldSummary.sawSuperCall(XMethod from, XMethod constructorInSuperClass) voidFieldSummary.setCalledFromSuperConstructor(ProgramPoint from, XMethod calledFromConstructor) voidFieldSummary.setFieldsWritten(XMethod method, Collection<XField> fields) voidClassHash.setMethodHash(XMethod method, byte[] methodHash) Set method hash for given method.private static XMethodHierarchy2.thisOrNothing(XMethod m, JavaClassAndMethodChooser chooser) Method parameters in edu.umd.cs.findbugs.ba with type arguments of type XMethodModifier and TypeMethodDescriptionprivate static voidHierarchy2.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 XMethodInterproceduralCallGraphVertex.xmethodprivate final XMethodOverriddenMethodsVisitor.xmethodMethods 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 TypeMethodDescriptionvoidInterproceduralCallGraphVertex.setXmethod(XMethod xmethod) protected abstract booleanOverriddenMethodsVisitor.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 voidUnconditionalValueDerefAnalysis.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.directParameterAnnotationsType qualifier annotations applied directly to method parameters.private final Map<TypeQualifierValue<?>, DualKeyHashMap<XMethod, Integer, TypeQualifierAnnotation>> TypeQualifierApplications.Data.effectiveParameterAnnotationsMap 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 voidAnalysis.addEffectiveRelevantQualifiers(HashSet<TypeQualifierValue<?>> result, XMethod xmethod) static voidAnalysis.addKnownTypeQualifiersForParameters(HashSet<? super TypeQualifierValue<?>> result, XMethod m) private static TypeQualifierAnnotationTypeQualifierApplications.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 BackwardTypeQualifierDataflowBackwardTypeQualifierDataflowFactory.getDataflow(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, IAnalysisCache analysisCache, MethodDescriptor methodDescriptor, TypeQualifierValue<?> typeQualifierValue) protected ForwardTypeQualifierDataflowForwardTypeQualifierDataflowFactory.getDataflow(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, IAnalysisCache analysisCache, MethodDescriptor methodDescriptor, TypeQualifierValue<?> typeQualifierValue) protected abstract DataflowTypeTypeQualifierDataflowFactory.getDataflow(DepthFirstSearch dfs, XMethod xmethod, CFG cfg, ValueNumberDataflow vnaDataflow, org.apache.bcel.generic.ConstantPoolGen cpg, IAnalysisCache analysisCache, MethodDescriptor methodDescriptor1, TypeQualifierValue<?> typeQualifierValue) private static TypeQualifierAnnotationTypeQualifierApplications.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 voidTypeQualifierApplications.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 voidAnalysis.getDirectlyRelevantTypeQualifiers(XMethod xmethod, HashSet<TypeQualifierValue<?>> result) static TypeQualifierAnnotationTypeQualifierApplications.getDirectTypeQualifierAnnotation(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) Get the TypeQualifierAnnotation directly applied to given method parameter.static TypeQualifierAnnotationTypeQualifierApplications.getEffectiveTypeQualifierAnnotation(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) Get the effective TypeQualifierAnnotation on given method parameter.static TypeQualifierAnnotationTypeQualifierApplications.getInheritedTypeQualifierAnnotation(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) Get the effective inherited TypeQualifierAnnotation on the given instance method parameter.static TypeQualifierAnnotationTypeQualifierApplications.getInheritedTypeQualifierAnnotation(XMethod o, TypeQualifierValue<?> typeQualifierValue) Get the effective inherited TypeQualifierAnnotation on given instance method.(package private) static booleanTypeQualifierDataflowAnalysis.isIdentifyFunctionForTypeQualifiers(XMethod m) protected abstract TypeQualifierAnnotationAbstractMethodAnnotationAccumulator.lookupAnnotation(XMethod xm) protected TypeQualifierAnnotationParameterAnnotationAccumulator.lookupAnnotation(XMethod xm) protected TypeQualifierAnnotationReturnTypeAnnotationAccumulator.lookupAnnotation(XMethod xm) protected voidBackwardTypeQualifierDataflowFactory.populateDatabase(BackwardTypeQualifierDataflow dataflow, ValueNumberDataflow vnaDataflow, XMethod xmethod, TypeQualifierValue<?> tqv) protected voidForwardTypeQualifierDataflowFactory.populateDatabase(ForwardTypeQualifierDataflow dataflow, ValueNumberDataflow vnaDataflow, XMethod xmethod, TypeQualifierValue<?> tqv) protected abstract voidTypeQualifierDataflowFactory.populateDatabase(DataflowType dataflow, ValueNumberDataflow vnaDataflow, XMethod xmethod, TypeQualifierValue<?> tqv) protected booleanAbstractMethodAnnotationAccumulator.visitOverriddenMethod(XMethod xmethod) Constructors in edu.umd.cs.findbugs.ba.jsr305 with parameters of type XMethodModifierConstructorDescriptionprotectedAbstractMethodAnnotationAccumulator(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.protectedParameterAnnotationAccumulator(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod, int parameter) Constructor.ReturnTypeAnnotationAccumulator(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod) Constructor.protectedTypeQualifierDataflowAnalysis(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 booleanTypeQualifierNullnessAnnotationDatabase.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, NullnessAnnotation methodNullnessAnnotation) Convert to a value known because it was returned from a method in a method property database.booleanTypeQualifierNullnessAnnotationDatabase.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 XMethodInstructionActionCache.xmethodprivate final XMethodObligationAnalysis.xmethodMethods 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 booleanMemberUtils.couldBeLambda(XMethod m) Checks if the method could be a lambda.static booleanMemberUtils.isMainMethod(XMethod method) Checks if the given method is a main method. -
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 XMethodFindPotentialSecurityCheckBasedOnUntrustedSource.CalleeInfo.calledMethodprivate final XMethodFindPotentialSecurityCheckBasedOnUntrustedSource.LambdaCallInfo.callerMethodprivate XMethodMethodReturnCheck.callSeenprivate XMethodMultipleInstantiationsOfSingletons.cloneMethod(package private) XMethodInitializationChain.InvocationInfo.constructor(package private) XMethodFindOverridableMethodCall.CallerInfo.method(package private) XMethodUncallableMethodOfAnonymousClass.potentialSuperCall(package private) XMethodFindPuzzlers.previousMethodInvocationprivate final XMethodExplicitSerialization.readObjectprivate XMethodFindBadEndOfStreamCheck.sourceprivate final XMethodExplicitSerialization.writeObjectprivate final XMethodCheckRelaxingNullnessAnnotation.DetectorNode.xmethod(package private) XMethodFindUnsatisfiedObligation.MethodChecker.xmethodFields in edu.umd.cs.findbugs.detect with type parameters of type XMethodModifier and TypeFieldDescriptionMultipleInstantiationsOfSingletons.calledMethodsByMethodsMultipleInstantiationsOfSingletons.calledMethodsByMethodsResourceInMultipleThreadsDetector.calledMethodsByMethodsResourceInMultipleThreadsDetector.calledMethodsByMethodsFindOverridableMethodCall.calleeToCallerMapFindOverridableMethodCall.calleeToCallerMapprivate final Map<XMethod, FindOverridableMethodCall.CallerInfo> FindOverridableMethodCall.callerClonesprivate final Map<XMethod, FindOverridableMethodCall.CallerInfo> FindOverridableMethodCall.callerConstructorsprivate final Map<XMethod, FindOverridableMethodCall.CallerInfo> FindOverridableMethodCall.callerReadObjectsFindOverridableMethodCall.callerToCalleeMapFindOverridableMethodCall.callerToCalleeMapFindOverridableMethodCall.callsToOverridableFindOverridableMethodCall.callsToOverridableNaming.canonicalToXMethodInitializationChain.constructorsInvokedInStaticInitializerFunctionsThatMightBeMistakenForProcedures.doNotIgnoreFunctionsThatMightBeMistakenForProcedures.doNotIgnoreHighMultipleInstantiationsOfSingletons.instanceGetterMethodsFindPotentialSecurityCheckBasedOnUntrustedSource.methodsCalledInsidePrivilegedActionFunctionsThatMightBeMistakenForProcedures.methodsSeenResourceInMultipleThreadsDetector.methodsUsedInThreadsMultipleInstantiationsOfSingletons.methodsUsingMonitorFindPotentialSecurityCheckBasedOnUntrustedSource.nonFinalMethodsCalledOnParamSharedVariableAtomicityDetector.nonSyncedMethodCallsByCallingMethodsSharedVariableAtomicityDetector.nonSyncedMethodCallsByCallingMethodsFunctionsThatMightBeMistakenForProcedures.okToIgnoreSharedVariableAtomicityDetector.readFieldsByMethodsFindOverridableMethodCall.refCalleeToCallerMapInitializationChain.staticFieldsReadMethods in edu.umd.cs.findbugs.detect that return XMethodModifier and TypeMethodDescriptionstatic XMethodprivate XMethodReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass.getConstructorThatCallsSuperConstructor(XMethod superConstructor) private XMethodFindOverridableMethodCall.getIndirectlyCalledOverridable(XMethod caller) private XMethodFindOverridableMethodCall.getIndirectlyCalledOverridable(XMethod caller, Set<XMethod> visited) private XMethodFindOverridableMethodCall.superClone(XClass clazz) Methods in edu.umd.cs.findbugs.detect with parameters of type XMethodModifier and TypeMethodDescriptionprivate voidSharedVariableAtomicityDetector.addNonFinalFieldsOfClass(XField field, XMethod method, Map<XMethod, Set<XField>> map) voidBuildObligationPolicyDatabase.addObligations(XMethod xmethod) private voidBuildObligationPolicyDatabase.addParameterDeletesObligationDatabaseEntry(XMethod xmethod, Obligation obligation, ObligationPolicyDatabaseEntryType entryType) Add an appropriate policy database entry for parameters marked with the WillClose annotation.private voidFindPotentialSecurityCheckBasedOnUntrustedSource.addToMethodsCalledInsidePrivilegedAction(XMethod calledMethod, OpcodeStack.Item object) private voidResourceInMultipleThreadsDetector.addToMethodsUsedInThreads(XMethod methodToAdd) private voidFindPotentialSecurityCheckBasedOnUntrustedSource.addToNonFinalMethodsCalledOnParam(ClassDescriptor calledClass, XMethod calledMethod, OpcodeStack.Item object) private voidCheckTypeQualifiers.annotateWarningWithSourceSinkInfo(BugInstance warning, XMethod xMethod, ValueNumber vn, SourceSinkInfo sourceSinkInfo) private voidCheckExpectedWarnings.check(XMethod xmethod, ClassDescriptor annotation, boolean expectWarnings, int priority) Deprecated.private voidFindOverridableMethodCall.checkAndRecordCallBetweenNonOverridableMethods(XMethod caller, XMethod callee) private voidFindOverridableMethodCall.checkAndRecordCallFromClone(XMethod clone, XMethod callee, SourceLineAnnotation sourceLine) private voidFindOverridableMethodCall.checkAndRecordCallFromConstructor(XMethod constructor, XMethod callee, SourceLineAnnotation sourceLine) private voidFindOverridableMethodCall.checkAndRecordCallFromReadObject(XMethod readObject, XMethod callee, SourceLineAnnotation sourceLine) private voidFindOverridableMethodCall.checkAndRecordCallToOverridable(XMethod caller, XMethod overridable) (package private) booleanFindOverridableMethodCall.checkAndRecordDirectCase(XMethod caller, XMethod method, String bugType, int priority, SourceLineAnnotation sourceLine) private voidSharedVariableAtomicityDetector.checkAndReportBug(int seen, XMethod method) private voidCheckTypeQualifiers.checkDataflow(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ValueNumberDataflow vnaDataflow, ForwardTypeQualifierDataflow forwardDataflow, BackwardTypeQualifierDataflow backwardDataflow) private voidCheckTypeQualifiers.checkForConflictingValues(XMethod xMethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) private voidCheckTypeQualifiers.checkForEqualityTest(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, Location loc, ValueNumberFrame factAtLocation) private final booleanCheckRelaxingNullnessAnnotation.DetectorNode.checkMethod(XMethod method) private booleanNaming.checkNonSuper(XMethod m, Set<XMethod> others) private voidCheckTypeQualifiers.checkQualifier(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ForwardTypeQualifierDataflowFactory forwardDataflowFactory, BackwardTypeQualifierDataflowFactory backwardDataflowFactory, ValueNumberDataflow vnaDataflow) Check a specific TypeQualifierValue on a method.private booleanNaming.checkSuper(XMethod m, Set<XMethod> others) private voidCheckTypeQualifiers.checkValueSources(XMethod xMethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ValueNumberDataflow vnaDataflow, ForwardTypeQualifierDataflow forwardDataflow, BackwardTypeQualifierDataflow backwardDataflow) private voidSharedVariableAtomicityDetector.collectFieldReadsAndInnerMethodCalls(int seen, XMethod method) static booleanNaming.confusingMethodNamesWrongCapitalization(XMethod m1, XMethod m2) static booleanNaming.confusingMethodNamesWrongPackage(XMethod m1, XMethod m2) private voidResourceInMultipleThreadsDetector.createOrUpdateFieldData(XField xField, boolean putfield, org.apache.bcel.classfile.Method containerMethod, XMethod xMethod) static XMethodprivate voidCheckTypeQualifiers.emitDataflowWarning(XMethod xMethod, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, ValueNumber vn, FlowValue forward, FlowValue backward, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) private voidCheckTypeQualifiers.emitSourceWarning(String bugType, XMethod xMethod, TypeQualifierValue<?> typeQualifierValue, FlowValue backwardsFlowValue, TypeQualifierValueSet backwardsFact, SourceSinkInfo source, ValueNumber vn, Location location) private InterproceduralCallGraphVertexBuildInterproceduralCallGraph.findVertex(XMethod xmethod) Find the InterproceduralCallGraphVertex for given XMethod.private XMethodReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass.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 XMethodFindOverridableMethodCall.getIndirectlyCalledOverridable(XMethod caller) private XMethodFindOverridableMethodCall.getIndirectlyCalledOverridable(XMethod caller, Set<XMethod> visited) private voidBuildObligationPolicyDatabase.handleWillCloseWhenClosed(XMethod xmethod, Obligation deletedObligation) Handle a method with a WillCloseWhenClosed parameter annotation.private booleanSharedVariableAtomicityDetector.hasNonSyncedNonPrivateCallToMethod(XMethod method, Set<XMethod> visitedMethods) private static booleanFindNoSideEffectMethods.hasOtherImplementations(XMethod xMethod) private booleanMultipleInstantiationsOfSingletons.hasSynchronized(XMethod method, Set<XMethod> visitedMethods) private booleanMethodReturnCheck.isCallBDDMockitoInvocation(XMethod method) private booleanMethodReturnCheck.isCallMockitoInvocation(XMethod method) private booleanFindBadEndOfStreamCheck.isFileRead(XMethod method) private booleanFindOverridableMethodCall.isSelfCall(XMethod method) FindPotentialSecurityCheckBasedOnUntrustedSource.lookForCalledOutside(org.apache.bcel.classfile.JavaClass callerClass, XMethod callerMethod, XClass calledClass, XMethod calledMethod, String argumentName) private booleanSharedVariableAtomicityDetector.mapContainsFieldWithOtherMethod(XField field, XMethod method, Map<XMethod, Set<XField>> map) private voidFindPotentialSecurityCheckBasedOnUntrustedSource.reportBug(org.apache.bcel.classfile.JavaClass cls, XMethod method, SourceLineAnnotation srcLine, FindPotentialSecurityCheckBasedOnUntrustedSource.CalleeInfo calleInfo, SourceLineAnnotation insideSrcLine) private voidprivate booleanFindNullDeref.safeCallToPrimateParseMethod(XMethod calledMethod, Location location) private voidNoteDirectlyRelevantTypeQualifiers.updateApplicableAnnotations(XMethod m) Method parameters in edu.umd.cs.findbugs.detect with type arguments of type XMethodModifier and TypeMethodDescriptionprivate voidSharedVariableAtomicityDetector.addNonFinalFieldsOfClass(XField field, XMethod method, Map<XMethod, Set<XField>> map) private booleanNaming.allAbstract(Set<XMethod> overrides) private booleanFindRefComparison.checkForWeirdEquals(String lhsSig, String rhsSig, Set<XMethod> targets) private booleanNaming.checkNonSuper(XMethod m, Set<XMethod> others) private booleanNaming.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 XMethodFindOverridableMethodCall.getIndirectlyCalledOverridable(XMethod caller, Set<XMethod> visited) private booleanSharedVariableAtomicityDetector.hasNonSyncedNonPrivateCallToMethod(XMethod method, Set<XMethod> visitedMethods) private booleanMultipleInstantiationsOfSingletons.hasSynchronized(XMethod method, Set<XMethod> visitedMethods) private booleanSharedVariableAtomicityDetector.mapContainsFieldWithOtherMethod(XField field, XMethod method, Map<XMethod, Set<XField>> map) 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