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