public class WarningPrinter
extends java.lang.Object
Constructor and Description |
---|
WarningPrinter(java.io.PrintWriter printWriter)
Creates a new WarningPrinter that prints to the given print writer.
|
WarningPrinter(java.io.PrintWriter printWriter,
java.util.List classFilter)
Creates a new WarningPrinter that prints to the given print stream, except if the names of any
involved classes matches the given filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.String className)
Returns whether the given class name passes the class name filter.
|
boolean |
accepts(java.lang.String className1,
java.lang.String className2)
Returns whether the given class names pass the class name filter.
|
int |
getWarningCount()
Returns the number of warnings printed so far.
|
void |
note(java.lang.String className,
java.lang.String message)
Prints out the given note without incrementing the warning count, if the given class name
passes the class name filter.
|
void |
note(java.lang.String className1,
java.lang.String className2,
java.lang.String message)
Prints out the given note without incrementing the warning count, if the given class nams pass
the class name filter.
|
void |
print(java.lang.String className,
java.lang.String warning)
Prints out the given warning and increments the warning count, if the given class name passes
the class name filter.
|
void |
print(java.lang.String className1,
java.lang.String className2,
java.lang.String warning)
Prints out the given warning and increments the warning count, if the given class names pass
the class name filter.
|
public WarningPrinter(java.io.PrintWriter printWriter)
public WarningPrinter(java.io.PrintWriter printWriter, java.util.List classFilter)
public void print(java.lang.String className, java.lang.String warning)
public boolean accepts(java.lang.String className)
public void print(java.lang.String className1, java.lang.String className2, java.lang.String warning)
public boolean accepts(java.lang.String className1, java.lang.String className2)
public void note(java.lang.String className, java.lang.String message)
public void note(java.lang.String className1, java.lang.String className2, java.lang.String message)
public int getWarningCount()