Interface CodePrinter.LicenseTracker

  • All Known Implementing Classes:
    Compiler.ChunkGraphAwareLicenseTracker, Compiler.ScriptNodeLicensesOnlyTracker, Compiler.SingleBinaryLicenseTracker
    Enclosing class:
    CodePrinter

    public static interface CodePrinter.LicenseTracker
    License Trackers are responsible for ensuring that any licensing information attached to nodes is retained in the final output of JSCompiler.

    The Code Printer will visit every node being printed and call trackLicensesForNode for that node. Later, some other code can call emitLicenses to retrieve all relevant licenses. Deciding what is relevant varies between implementations of License Trackers - read their javadoc to determine how they are intended to be used.

    • Method Detail

      • trackLicensesForNode

        void trackLicensesForNode​(Node node)
      • emitLicenses

        com.google.common.collect.ImmutableSet<java.lang.String> emitLicenses()