Class InternalApiBridge


  • @InternalApi
    public final class InternalApiBridge
    extends Object
    Internal API.

    Acts as a bridge between outer parts of PMD and the restricted access internal API of this package.

    None of this is published API, and compatibility can be broken anytime! Use this only at your own risk.

    Author:
    Clément Fournier
    API Note:
    Internal API
    Since:
    7.0.0
    • Method Detail

      • disambigWithCtx

        public static void disambigWithCtx​(NodeStream<? extends JavaNode> nodes,
                                           net.sourceforge.pmd.lang.java.symbols.table.internal.ReferenceCtx ctx)
      • forceTypeResolutionPhase

        public static void forceTypeResolutionPhase​(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor,
                                                    ASTCompilationUnit root)
        Forcing type resolution allows us to report errors more cleanly than if it was done completely lazy. Failures (other than semantic exceptions) are thrown, because they are bugs in the typeres framework. Semantic exceptions cause execution to abort too, but only right before rules are applied, so several semantic exceptions may be collected.
      • usageResolution

        public static void usageResolution​(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor,
                                           ASTCompilationUnit root)
      • overrideResolution

        public static void overrideResolution​(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor,
                                              ASTCompilationUnit root)
      • getTypeMirrorInternal

        public static @Nullable JTypeMirror getTypeMirrorInternal​(TypeNode node)
      • setTypeMirrorInternal

        public static void setTypeMirrorInternal​(TypeNode node,
                                                 JTypeMirror inferred)
      • initTypeResolver

        public static void initTypeResolver​(ASTCompilationUnit acu,
                                            net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor,
                                            net.sourceforge.pmd.lang.java.types.internal.infer.TypeInferenceLogger logger)
      • getProcessor

        public static net.sourceforge.pmd.lang.java.internal.JavaAstProcessor getProcessor​(JavaNode n)
      • getInferenceEntryPoint

        public static net.sourceforge.pmd.lang.java.types.internal.infer.Infer getInferenceEntryPoint​(JavaNode n)
      • getLazyTypeResolver

        public static @NonNull net.sourceforge.pmd.lang.java.types.ast.internal.LazyTypeResolver getLazyTypeResolver​(JavaNode n)
      • getTopLevelExprContext

        public static @NonNull ExprContext getTopLevelExprContext​(TypeNode n)