public class AllowlistWarningsGuard.AllowlistBuilder extends java.lang.Object implements ErrorHandler
Constructor and Description |
---|
AllowlistBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
appendAllowlist(java.io.PrintStream out)
Writes the warnings collected in a format that the AllowlistWarningsGuard can read back
later.
|
void |
report(CheckLevel level,
JSError error) |
AllowlistWarningsGuard.AllowlistBuilder |
setGeneratorTarget(java.lang.String name)
Fill in instructions on how to generate this allowlist.
|
AllowlistWarningsGuard.AllowlistBuilder |
setNote(java.lang.String note)
A note to include at the top of the allowlist file.
|
AllowlistWarningsGuard.AllowlistBuilder |
setProductName(java.lang.String name)
Fill in your product name to get a fun message!
|
void |
writeAllowlist(java.io.File out)
Writes the warnings collected in a format that the AllowlistWarningsGuard can read back
later.
|
public AllowlistWarningsGuard.AllowlistBuilder setProductName(java.lang.String name)
public AllowlistWarningsGuard.AllowlistBuilder setGeneratorTarget(java.lang.String name)
public AllowlistWarningsGuard.AllowlistBuilder setNote(java.lang.String note)
public void report(CheckLevel level, JSError error)
report
in interface ErrorHandler
level
- the reporting levelerror
- the error to reportpublic void writeAllowlist(java.io.File out) throws java.io.IOException
java.io.IOException
public void appendAllowlist(java.io.PrintStream out)
Copyright © 2009-2020 Google. All Rights Reserved.