Class TypeInferenceLogger.VerboseLogger

    • Constructor Detail

      • VerboseLogger

        public VerboseLogger​(PrintStream out)
    • Method Detail

      • startInference

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

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

        public void endInference​(@Nullable JMethodSig result)
      • startArgsChecks

        public void startArgsChecks()
      • startReturnChecks

        public void startReturnChecks()
      • propagateAndAbort

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

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

        public void functionalExprNeedsInvocationCtx​(JTypeMirror targetT,
                                                     ExprMirror expr)
      • endArgsChecks

        public void endArgsChecks()
      • endArg

        public void endArg()
      • endReturnChecks

        public void endReturnChecks()
      • ivarMerged

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

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

        public void logResolutionFail​(ResolutionFailure exception)
        Description copied from interface: TypeInferenceLogger
        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.

        Specified by:
        logResolutionFail in interface TypeInferenceLogger
        Overrides:
        logResolutionFail in class TypeInferenceLogger.SimpleLogger
        Parameters:
        exception - Failure record