Package com.google.javascript.jscomp
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<java.lang.String>
emitLicenses()
void
trackLicensesForNode(Node node)
-
-
-
Method Detail
-
trackLicensesForNode
void trackLicensesForNode(Node node)
-
emitLicenses
com.google.common.collect.ImmutableSet<java.lang.String> emitLicenses()
-
-