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.
Support for analyzing code containing JSR-305 type qualifier annotations.
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 XMethodMethods in edu.umd.cs.findbugs.ba that return XMethodModifier and TypeMethodDescriptionXMethod.bridgeFrom()
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) 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) MethodUnprofitableException.getMethod()
XMethodParameter.getMethod()
FieldSummary.getSuperCall
(XMethod from) AbstractMethod.resolveAccessMethodForMethod()
XMethod.resolveAccessMethodForMethod()
JavaClassAndMethod.toXMethod()
Convert to an XMethod.Methods in edu.umd.cs.findbugs.ba that return types with arguments of type XMethodModifier and TypeMethodDescriptionHierarchy2.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.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) FieldSummary.getCalledFromSuperConstructor
(ClassDescriptor superClass, XMethod calledFromConstructor) 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.FieldSummary.getSuperCall
(XMethod from) boolean
JCIPAnnotationDatabase.hasMethodAnnotation
(XMethod method, String annotationClass) boolean
boolean
XFactory.isCalledDirectlyOrIndirectly
(XMethod m) static boolean
Hierarchy.isConcrete
(XMethod xmethod) Deprecated.boolean
XFactory.isInterned
(XMethod m) Deprecated.static boolean
TestCaseDetector.likelyTestCase
(XMethod m) boolean
XFactory.nameAndSignatureIsCalled
(XMethod m) 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.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
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.jsr305
Fields in edu.umd.cs.findbugs.ba.jsr305 declared as XMethodMethods in edu.umd.cs.findbugs.ba.jsr305 with parameters of type XMethodModifier and TypeMethodDescriptionstatic void
Analysis.addKnownTypeQualifiersForParameters
(HashSet<? super TypeQualifierValue<?>> result, XMethod m) 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.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) 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.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.protected abstract TypeQualifierAnnotation
AbstractMethodAnnotationAccumulator.lookupAnnotation
(XMethod xm) protected TypeQualifierAnnotation
ParameterAnnotationAccumulator.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.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
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.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
Methods in edu.umd.cs.findbugs.detect that return XMethodMethods in edu.umd.cs.findbugs.detect with parameters of type XMethodModifier and TypeMethodDescriptionvoid
BuildObligationPolicyDatabase.addObligations
(XMethod xmethod) static boolean
Naming.confusingMethodNamesWrongCapitalization
(XMethod m1, XMethod m2) static boolean
Naming.confusingMethodNamesWrongPackage
(XMethod m1, XMethod m2) static XMethod
-
Uses of XMethod in edu.umd.cs.findbugs.visitclass
Methods in edu.umd.cs.findbugs.visitclass that return XMethodModifier and TypeMethodDescriptionPreorderVisitor.getXMethod()
DismantleBytecode.getXMethodOperand()
PruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException(XMethod)
instead