Class Compiler.ScriptNodeLicensesOnlyTracker

  • All Implemented Interfaces:
    CodePrinter.LicenseTracker
    Enclosing class:
    Compiler

    public static class Compiler.ScriptNodeLicensesOnlyTracker
    extends java.lang.Object
    A license tracker implementation that emits all licenses attached to script nodes, regardless of if the content of that script is used anywhere in the compilation.

    This license tracker encapsulates the logic that the compiler used before the concept of license tracking was implemented, and should only used in places where a better implementation cannot be used. See Compiler.SingleBinaryLicenseTracker and Compiler.ChunkGraphAwareLicenseTracker for smarter implementations of a license tracker for the single-binary and multiple-chunk emit use-cases.

    • Constructor Detail

      • ScriptNodeLicensesOnlyTracker

        public ScriptNodeLicensesOnlyTracker​(AbstractCompiler compiler)
    • Method Detail

      • shouldUseLicenseInfo

        protected boolean shouldUseLicenseInfo​(Node node)