Package com.google.javascript.jscomp
Class WhitelistWarningsGuard.WhitelistBuilder
java.lang.Object
com.google.javascript.jscomp.WhitelistWarningsGuard.WhitelistBuilder
- All Implemented Interfaces:
ErrorHandler
- Enclosing class:
- WhitelistWarningsGuard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrites the warnings collected in a format that the WhitelistWarningsGuard can read back later.voidreport(CheckLevel level, JSError error) setGeneratorTarget(String name) Fill in instructions on how to generate this whitelist.A note to include at the top of the whitelist file.setProductName(String name) Fill in your product name to get a fun message!setWithLineNumber(boolean line) Deprecated.voidwriteWhitelist(File out) Writes the warnings collected in a format that the WhitelistWarningsGuard can read back later.
-
Constructor Details
-
WhitelistBuilder
public WhitelistBuilder()
-
-
Method Details
-
setProductName
Fill in your product name to get a fun message! -
setGeneratorTarget
Fill in instructions on how to generate this whitelist. -
setNote
A note to include at the top of the whitelist file. -
setWithLineNumber
Deprecated.We now always record the line number. -
report
- Specified by:
reportin interfaceErrorHandler- Parameters:
level- the reporting levelerror- the error to report
-
writeWhitelist
Writes the warnings collected in a format that the WhitelistWarningsGuard can read back later.- Throws:
IOException
-
appendWhitelist
Writes the warnings collected in a format that the WhitelistWarningsGuard can read back later.
-