Class WarningPrinter

java.lang.Object
proguard.classfile.util.WarningPrinter
Direct Known Subclasses:
WarningLogger

public class WarningPrinter extends Object
This class prints out and counts warnings.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Type
    Method
    Description
    boolean
    accepts(String className)
    Returns whether the given class name passes the class name filter.
    boolean
    accepts(String className1, String className2)
    Returns whether the given class names pass the class name filter.
    int
    Returns the number of warnings printed so far.
    void
    note(String className, String message)
    Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.
    void
    note(String className1, String className2, String message)
    Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter.
    void
    print(String className, String warning)
    Prints out the given warning and increments the warning count, if the given class name passes the class name filter.
    void
    print(String className1, String className2, String warning)
    Prints out the given warning and increments the warning count, if the given class names pass the class name filter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WarningPrinter

      public WarningPrinter(PrintWriter printWriter)
      Creates a new WarningPrinter that prints to the given print writer.
    • WarningPrinter

      public 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 Details

    • print

      public void print(String className, String warning)
      Prints out the given warning and increments the warning count, if the given class name passes the class name filter.
    • accepts

      public boolean accepts(String className)
      Returns whether the given class name passes the class name filter.
    • print

      public void print(String className1, String className2, String warning)
      Prints out the given warning and increments the warning count, if the given class names pass the class name filter.
    • accepts

      public boolean accepts(String className1, String className2)
      Returns whether the given class names pass the class name filter.
    • note

      public void note(String className, String message)
      Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.
    • note

      public void note(String className1, String className2, String message)
      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.