类 WarningPrinter

java.lang.Object
proguard.classfile.util.WarningPrinter
直接已知子类:
WarningLogger

public class WarningPrinter extends Object
This class prints out and counts warnings.
  • 构造器概要

    构造器
    构造器
    说明
    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.
  • 方法概要

    修饰符和类型
    方法
    说明
    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.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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.
  • 方法详细资料

    • 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.