Package proguard.classfile.util
Class WarningPrinter
java.lang.Object
proguard.classfile.util.WarningPrinter
- Direct Known Subclasses:
WarningLogger
This class prints out and counts warnings.
-
Constructor Summary
ConstructorsConstructorDescriptionWarningPrinter(PrintWriter printWriter) Creates a new WarningPrinter that prints to the given print writer.WarningPrinter(PrintWriter printWriter, 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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the given class name passes the class name filter.booleanReturns whether the given class names pass the class name filter.intReturns the number of warnings printed so far.voidPrints out the given note without incrementing the warning count, if the given class name passes the class name filter.voidPrints out the given note without incrementing the warning count, if the given class nams pass the class name filter.voidPrints out the given warning and increments the warning count, if the given class name passes the class name filter.voidPrints out the given warning and increments the warning count, if the given class names pass the class name filter.
-
Constructor Details
-
WarningPrinter
Creates a new WarningPrinter that prints to the given print writer. -
WarningPrinter
Creates a new WarningPrinter that prints to the given print stream, except if the names of any involved classes matches the given filter.
-
-
Method Details
-
print
Prints out the given warning and increments the warning count, if the given class name passes the class name filter. -
accepts
Returns whether the given class name passes the class name filter. -
print
Prints out the given warning and increments the warning count, if the given class names pass the class name filter. -
accepts
Returns whether the given class names pass the class name filter. -
note
Prints out the given note without incrementing the warning count, if the given class name passes the class name filter. -
note
Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter. -
getWarningCount
public int getWarningCount()Returns the number of warnings printed so far.
-