Package com.google.javascript.jscomp
Class AllowlistWarningsGuard.AllowlistBuilder
java.lang.Object
com.google.javascript.jscomp.AllowlistWarningsGuard.AllowlistBuilder
- All Implemented Interfaces:
ErrorHandler
- Enclosing class:
AllowlistWarningsGuard
Allowlist builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Writes the warnings collected in a format that the AllowlistWarningsGuard can read back later.void
report
(CheckLevel level, JSError error) setGeneratorTarget
(String name) Fill in instructions on how to generate this allowlist.A note to include at the top of the allowlist file.setProductName
(String name) Fill in your product name to get a fun message!void
writeAllowlist
(File out) Writes the warnings collected in a format that the AllowlistWarningsGuard can read back later.
-
Constructor Details
-
AllowlistBuilder
public AllowlistBuilder()
-
-
Method Details
-
setProductName
Fill in your product name to get a fun message! -
setGeneratorTarget
@CanIgnoreReturnValue public AllowlistWarningsGuard.AllowlistBuilder setGeneratorTarget(String name) Fill in instructions on how to generate this allowlist. -
setNote
A note to include at the top of the allowlist file. -
report
- Specified by:
report
in interfaceErrorHandler
- Parameters:
level
- the reporting levelerror
- the error to report
-
writeAllowlist
Writes the warnings collected in a format that the AllowlistWarningsGuard can read back later.- Throws:
IOException
-
appendAllowlist
Writes the warnings collected in a format that the AllowlistWarningsGuard can read back later.
-