|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.javascript.jscomp.WhitelistWarningsGuard.WhitelistBuilder
public static class WhitelistWarningsGuard.WhitelistBuilder
Whitelist builder
Constructor Summary | |
---|---|
WhitelistWarningsGuard.WhitelistBuilder()
|
Method Summary | |
---|---|
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! |
WhitelistWarningsGuard.WhitelistBuilder |
setWithLineNumber(boolean line)
Deprecated. |
void |
writeWhitelist(File out)
Writes the warnings collected in a format that the WhitelistWarningsGuard can read back later. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WhitelistWarningsGuard.WhitelistBuilder()
Method Detail |
---|
public WhitelistWarningsGuard.WhitelistBuilder setProductName(String name)
public WhitelistWarningsGuard.WhitelistBuilder setGeneratorTarget(String name)
public WhitelistWarningsGuard.WhitelistBuilder setNote(String note)
@Deprecated public WhitelistWarningsGuard.WhitelistBuilder setWithLineNumber(boolean line)
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |