类 InitializationUtil


  • public class InitializationUtil
    extends java.lang.Object
    This utility class provides a method to initialize the cached cross-references classes. They are necessary to traverse the class hierarchy efficiently, for example when preverifying code or performing more general partial evaluation.
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static void initialize​(ClassPool programClassPool, ClassPool libraryClassPool)
      Initializes the cached cross-references of the classes in the given class pools.
      static void initialize​(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter warningPrinter)
      Initializes the cached cross-references of the classes in the given class pools.
      • 从类继承的方法 java.lang.Object

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

      • InitializationUtil

        public InitializationUtil()
    • 方法详细资料

      • initialize

        public static void initialize​(ClassPool programClassPool,
                                      ClassPool libraryClassPool)
        Initializes the cached cross-references of the classes in the given class pools.

        Note: no warnings are given when classes are missing: if you require warnings about missing classes use initialize(ClassPool, ClassPool, WarningPrinter) instead.

        参数:
        programClassPool - the program class pool, typically with processed classes.
        libraryClassPool - the library class pool, typically with run-time classes.
      • initialize

        public static void initialize​(ClassPool programClassPool,
                                      ClassPool libraryClassPool,
                                      WarningPrinter warningPrinter)
        Initializes the cached cross-references of the classes in the given class pools.
        参数:
        programClassPool - the program class pool, typically with processed classes.
        libraryClassPool - the library class pool, typically with run-time classes.
        warningPrinter - the WarningPrinter to use for printing warnings about missing classes.