Package proguard.classfile.util
Class InitializationUtil
- java.lang.Object
-
- proguard.classfile.util.InitializationUtil
-
public class InitializationUtil extends java.lang.ObjectThis 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.
-
-
Constructor Summary
Constructors Constructor Description InitializationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinitialize(ClassPool programClassPool, ClassPool libraryClassPool)Initializes the cached cross-references of the classes in the given class pools.static voidinitialize(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter warningPrinter)Initializes the cached cross-references of the classes in the given class pools.
-
-
-
Method Detail
-
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.- Parameters:
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.- Parameters:
programClassPool- the program class pool, typically with processed classes.libraryClassPool- the library class pool, typically with run-time classes.warningPrinter- theWarningPrinterto use for printing warnings about missing classes.
-
-