Uses of Interface
edu.umd.cs.findbugs.ba.XMethod
-
Packages that use XMethod Package Description edu.umd.cs.findbugs Main package for the FindBugs application - contains the engine class (FindBugs), the object model classes for bug instances (BugInstance, BugAnnotation), and other miscellany.edu.umd.cs.findbugs.ba edu.umd.cs.findbugs.ba.ch edu.umd.cs.findbugs.ba.jsr305 Support for analyzing code containing JSR-305 type qualifier annotations.edu.umd.cs.findbugs.ba.npe edu.umd.cs.findbugs.ba.obl edu.umd.cs.findbugs.classfile.analysis 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.edu.umd.cs.findbugs.detect edu.umd.cs.findbugs.visitclass -
-
Uses of XMethod in edu.umd.cs.findbugs
Fields in edu.umd.cs.findbugs declared as XMethod Modifier and Type Field Description XMethodProgramPoint. methodMethods in edu.umd.cs.findbugs that return XMethod Modifier and Type Method Description static XMethodLookup. findSuperImplementorAsXMethod(org.apache.bcel.classfile.JavaClass clazz, java.lang.String name, java.lang.String signature, BugReporter bugReporter)XMethodOpcodeStack.Item. getReturnValueOf()XMethodMethodAnnotation. toXMethod()Convert to an XMethod.Methods in edu.umd.cs.findbugs with parameters of type XMethod Modifier and Type Method Description BugInstanceBugInstance. addCalledMethod(XMethod m)BugInstanceBugInstance. addClassAndMethod(XMethod xMethod)BugInstanceBugInstance. addMethod(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 XMethod Modifier and Type Method Description BugInstanceBugInstance. addEqualsMethodUsed(java.util.Collection<XMethod> equalsMethods) -
Uses of XMethod in edu.umd.cs.findbugs.ba
Classes in edu.umd.cs.findbugs.ba that implement XMethod Modifier and Type Class Description classAbstractMethodMethods in edu.umd.cs.findbugs.ba that return XMethod Modifier and Type Method Description XMethodXMethod. bridgeFrom()XMethodXMethod. 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(java.lang.String className, java.lang.String methodName, java.lang.String methodSig, boolean isStatic)static XMethodXFactory. createXMethod(java.lang.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(java.lang.String className, java.lang.String methodName, java.lang.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, java.lang.String methodName, java.lang.String methodSig, boolean invokeStatic, boolean invokeInterface)static XMethodHierarchy2. findInvocationLeastUpperBound(ClassDescriptor classDesc, java.lang.String methodName, java.lang.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, java.lang.String methodName, java.lang.String methodSig, boolean invokeStatic, boolean invokeInterface)XMethodXClass. findMatchingMethod(MethodDescriptor descriptor)Find XMethod matching the name and signature of the supplied method MethodDescriptor.static XMethodHierarchy. findMethod(ClassDescriptor classDesc, java.lang.String methodName, java.lang.String methodSig, boolean isStatic)Find a method in given class.static XMethodHierarchy2. findMethod(ClassDescriptor classDescriptor, java.lang.String methodName, java.lang.String methodSig, boolean isStatic)XMethodXClass. findMethod(MethodDescriptor descriptor)Find XMethod matching given MethodDescriptor.XMethodXClass. findMethod(java.lang.String methodName, java.lang.String methodSig, boolean isStatic)Find an XMethod matching given parameters.static XMethodHierarchy. findXMethod(org.apache.bcel.classfile.JavaClass[] classList, java.lang.String methodName, java.lang.String methodSig)Deprecated.static XMethodHierarchy. findXMethod(org.apache.bcel.classfile.JavaClass[] classList, java.lang.String methodName, java.lang.String methodSig, JavaClassAndMethodChooser chooser)Deprecated.static XMethodHierarchy. findXMethod(org.apache.bcel.classfile.JavaClass javaClass, java.lang.String methodName, java.lang.String methodSig, JavaClassAndMethodChooser chooser)Deprecated.XMethodAnalysisContext. getBridgeFrom(MethodInfo m)XMethodAnalysisContext. getBridgeTo(MethodInfo m)XMethodMethodUnprofitableException. getMethod()XMethodXMethodParameter. getMethod()XMethodFieldSummary. getSuperCall(XMethod from)XMethodAbstractMethod. resolveAccessMethodForMethod()XMethodXMethod. resolveAccessMethodForMethod()XMethodJavaClassAndMethod. toXMethod()Convert to an XMethod.Methods in edu.umd.cs.findbugs.ba that return types with arguments of type XMethod Modifier and Type Method Description static java.util.Set<XMethod>Hierarchy2. findSuperMethods(XMethod m)java.util.Set<XMethod>XFactory. getCalledMethods()java.util.List<? extends XMethod>XClass. getXMethods()static java.util.Set<XMethod>Hierarchy2. resolveMethodCallTargets(org.apache.bcel.generic.InvokeInstruction invokeInstruction, TypeFrame typeFrame, org.apache.bcel.generic.ConstantPoolGen cpg)Resolve possible method call targets.static java.util.Set<XMethod>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.static java.util.Set<XMethod>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.static java.util.Set<XMethod>Hierarchy2. resolveVirtualMethodCallTargets(XMethod target, boolean receiverTypeIsExact, boolean invokeSpecial)static java.util.Set<XMethod>Hierarchy2. resolveVirtualMethodCallTargets(ClassDescriptor receiverDesc, java.lang.String methodName, java.lang.String methodSig, boolean receiverTypeIsExact, boolean invokeSpecial)static java.util.Set<XMethod>Hierarchy2. resolveVirtualMethodCallTargets(java.lang.String receiverClassName, java.lang.String methodName, java.lang.String methodSig, boolean receiverTypeIsExact, boolean invokeSpecial)Methods in edu.umd.cs.findbugs.ba with parameters of type XMethod Modifier and Type Method Description voidAnalysisContext. analysisSkippedDueToInvokeDynamic(XMethod m)booleanCompoundMethodChooser. choose(XMethod method)Deprecated.booleanJavaClassAndMethodChooser. choose(XMethod method)Deprecated.static java.lang.StringSignatureConverter. convertMethodSignature(XMethod xmethod)Convenience method for generating a method signature in human readable form.static booleanPruneUnconditionalExceptionThrowerEdges. doesMethodUnconditionallyThrowException(XMethod xMethod)static java.lang.BooleanPruneUnconditionalExceptionThrowerEdges. doesMethodUnconditionallyThrowException(XMethod xMethod, org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method)Deprecated.static XMethodHierarchy2. findFirstSuperMethod(XMethod m)static java.util.Set<XMethod>Hierarchy2. findSuperMethods(XMethod m)java.util.Set<ProgramPoint>FieldSummary. getCalledFromSuperConstructor(ClassDescriptor superClass, XMethod calledFromConstructor)java.util.Set<XField>FieldSummary. getFieldsWritten(XMethod method)org.apache.bcel.classfile.ElementValueJCIPAnnotationDatabase. getMethodAnnotation(XMethod method, java.lang.String annotationClass)MethodHashClassHash. getMethodHash(XMethod method)Get method hash for given method.XMethodFieldSummary. getSuperCall(XMethod from)booleanJCIPAnnotationDatabase. hasMethodAnnotation(XMethod method, java.lang.String annotationClass)booleanXFactory. isCalled(XMethod m)booleanXFactory. isCalledDirectlyOrIndirectly(XMethod m)static booleanHierarchy. isConcrete(XMethod xmethod)Deprecated.booleanXFactory. isInterned(XMethod m)Deprecated.static booleanTestCaseDetector. likelyTestCase(XMethod m)booleanXFactory. nameAndSignatureIsCalled(XMethod m)booleanINullnessAnnotationDatabase. parameterMustBeNonNull(XMethod m, int param)Determine whether given parameter must be non-null.booleanNullnessAnnotationDatabase. parameterMustBeNonNull(XMethod m, int param)Deprecated.static java.util.Set<XMethod>Hierarchy2. resolveVirtualMethodCallTargets(XMethod target, boolean receiverTypeIsExact, boolean invokeSpecial)voidFieldSummary. sawSuperCall(XMethod from, XMethod constructorInSuperClass)voidFieldSummary. setCalledFromSuperConstructor(ProgramPoint from, XMethod calledFromConstructor)voidFieldSummary. setFieldsWritten(XMethod method, java.util.Collection<XField> fields)voidClassHash. setMethodHash(XMethod method, byte[] methodHash)Set method hash for given method.Constructors in edu.umd.cs.findbugs.ba with parameters of type XMethod Constructor Description JavaClassAndMethod(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 XMethod Modifier and Type Method Description XMethodInterproceduralCallGraphVertex. getXmethod()XMethodOverriddenMethodsVisitor. getXmethod()Methods in edu.umd.cs.findbugs.ba.ch with parameters of type XMethod Modifier and Type Method Description voidInterproceduralCallGraphVertex. 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 Constructor Description OverriddenMethodsVisitor(XMethod xmethod)Constructor. -
Uses of XMethod in edu.umd.cs.findbugs.ba.jsr305
Fields in edu.umd.cs.findbugs.ba.jsr305 declared as XMethod Modifier and Type Field Description protected XMethodTypeQualifierDataflowAnalysis. xmethodMethods in edu.umd.cs.findbugs.ba.jsr305 with parameters of type XMethod Modifier and Type Method Description static voidAnalysis. addKnownTypeQualifiersForParameters(java.util.HashSet<? super TypeQualifierValue<?>> result, XMethod m)static java.util.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 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)static voidTypeQualifierApplications. getDirectApplications(java.util.Set<TypeQualifierAnnotation> result, XMethod o, int parameter)Populate a Set of TypeQualifierAnnotations representing directly-applied type qualifier annotations on given method parameter.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.protected abstract TypeQualifierAnnotationAbstractMethodAnnotationAccumulator. lookupAnnotation(XMethod xm)protected TypeQualifierAnnotationParameterAnnotationAccumulator. 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 XMethod Constructor Description 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.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 XMethod Modifier and Type Method Description XMethodTypeQualifierNullnessAnnotationDatabase. getXMethod(java.lang.String cName, java.lang.String mName, java.lang.String sig, boolean isStatic)Methods in edu.umd.cs.findbugs.ba.npe with parameters of type XMethod Modifier and Type Method Description static booleanTypeQualifierNullnessAnnotationDatabase. assertsFirstParameterIsNonnull(XMethod m)NullnessAnnotationTypeQualifierNullnessAnnotationDatabase. getInheritedAnnotation(XMethod m)NullnessAnnotationTypeQualifierNullnessAnnotationDatabase. getInheritedAnnotation(XMethod m, int parameter)static PointerUsageRequiringNonNullValuePointerUsageRequiringNonNullValue. getPassedAsNonNullParameter(XMethod m, int param)static PointerUsageRequiringNonNullValuePointerUsageRequiringNonNullValue. getReturnFromNonNullMethod(XMethod m)IsNullValueIsNullValueFrameModelingVisitor. getReturnValueNullness(XMethod calledMethod)IsNullValueIsNullValue. markInformationAsComingFromReturnValueOfMethod(XMethod methodInvoked)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
Methods in edu.umd.cs.findbugs.ba.obl with parameters of type XMethod Modifier and Type Method Description ObligationPolicyDatabaseEntryObligationPolicyDatabase. addParameterDeletesObligationDatabaseEntry(XMethod xmethod, Obligation obligation, ObligationPolicyDatabaseEntryType entryType)Add an appropriate policy database entry for parameters marked with the WillClose annotation.Obligation[]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 XMethod Constructor Description InstructionActionCache(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 XMethod Modifier and Type Class Description classMethodInfoMethods in edu.umd.cs.findbugs.classfile.analysis that return XMethod Modifier and Type Method Description XMethodMethodInfo. bridgeFrom()XMethodMethodInfo. bridgeTo()XMethodClassInfo. findMatchingMethod(MethodDescriptor descriptor)XMethodClassInfo. findMethod(MethodDescriptor descriptor)XMethodClassInfo. findMethod(java.lang.String methodName, java.lang.String methodSig, boolean isStatic)XMethodMethodInfo. resolveAccessMethodForMethod()Methods in edu.umd.cs.findbugs.classfile.analysis that return types with arguments of type XMethod Modifier and Type Method Description java.util.List<? extends XMethod>ClassInfo. getXMethods()java.util.List<? extends XMethod>ClassInfo. getXMethodsInCallOrder() -
Uses of XMethod in edu.umd.cs.findbugs.detect
Methods in edu.umd.cs.findbugs.detect that return XMethod Modifier and Type Method Description static XMethodNaming. definedIn(org.apache.bcel.classfile.JavaClass clazz, XMethod m)Methods in edu.umd.cs.findbugs.detect with parameters of type XMethod Modifier and Type Method Description voidBuildObligationPolicyDatabase. addObligations(XMethod xmethod)static booleanNaming. confusingMethodNamesWrongCapitalization(XMethod m1, XMethod m2)static booleanNaming. confusingMethodNamesWrongPackage(XMethod m1, XMethod m2)static XMethodNaming. definedIn(org.apache.bcel.classfile.JavaClass clazz, XMethod m) -
Uses of XMethod in edu.umd.cs.findbugs.visitclass
Methods in edu.umd.cs.findbugs.visitclass that return XMethod Modifier and Type Method Description XMethodPreorderVisitor. getXMethod()XMethodDismantleBytecode. getXMethodOperand()
-