Interface TypeInferenceLogger

    • Method Detail

      • polyResolutionFailure

        default void polyResolutionFailure​(JavaNode node)
      • noApplicableCandidates

        default void noApplicableCandidates​(MethodCallSite site)
      • noCompileTimeDeclaration

        default void noCompileTimeDeclaration​(MethodCallSite site)
      • startInference

        default void startInference​(JMethodSig sig,
                                    MethodCallSite site,
                                    net.sourceforge.pmd.lang.java.types.internal.infer.MethodResolutionPhase phase)
      • endInference

        default void endInference​(@Nullable JMethodSig result)
      • ctxInitialization

        default void ctxInitialization​(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx,
                                       JMethodSig sig)
      • startArgsChecks

        default void startArgsChecks()
      • skipArgAsNonPertinent

        default void skipArgAsNonPertinent​(int i,
                                           ExprMirror expr)
      • functionalExprNeedsInvocationCtx

        default void functionalExprNeedsInvocationCtx​(JTypeMirror targetT,
                                                      ExprMirror expr)
      • endArg

        default void endArg()
      • endArgsChecks

        default void endArgsChecks()
      • startReturnChecks

        default void startReturnChecks()
      • endReturnChecks

        default void endReturnChecks()
      • propagateAndAbort

        default void propagateAndAbort​(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext context,
                                       net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext parent)
      • ivarMerged

        default void ivarMerged​(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx,
                                InferenceVar var,
                                InferenceVar delegate)
      • ivarInstantiated

        default void ivarInstantiated​(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx,
                                      InferenceVar var,
                                      JTypeMirror inst)
      • logResolutionFail

        default void logResolutionFail​(ResolutionFailure exception)
        Log that the instantiation of the method type m for the given call site failed. The exception provides a detail message. Such an event is perfectly normal and may happen repeatedly when performing overload resolution.

        Exceptions occuring in an invocation phase are compile-time errors though.

        Parameters:
        exception - Failure record
      • isNoop

        default boolean isNoop()
      • newInstance

        TypeInferenceLogger newInstance()
        Return an instance for concurrent use in another thread. If this is Noop, then return the same instance because it's thread-safe.