Package proguard.examples.util
Class ExampleUtil
java.lang.Object
proguard.examples.util.ExampleUtil
Utility methods used by examples.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic ClassPoolcreateClassPool(Class<?>... classes) static ObjectexecuteMainMethod(ClassPool classPool, String internalClassName) Execute the "main" method of a ProGuardCORE class in the givenClassPoolwith the specified name.static ObjectexecuteMainMethod(ClassPool classPool, String internalClassName, String... arguments) Execute the "main" method of a ProGuardCORE class in the givenClassPoolwith the specified name and the specified arguments.static ObjectexecuteMainMethod(ProgramClass programClass) Execute the "main" method of a ProGuardCOREProgramClass.static ObjectexecuteMethod(ClassPool classPool, String internalClassName, String methodName, Class<?>[] parameterTypes, Object[] arguments) Execute the specified method of a ProGuardCORE class in the givenClassPoolwith the specified name and the specified arguments.
-
Method Details
-
createClassPool
-
addClass
-
executeMainMethod
Execute the "main" method of a ProGuardCOREProgramClass. -
executeMainMethod
Execute the "main" method of a ProGuardCORE class in the givenClassPoolwith the specified name. -
executeMainMethod
public static Object executeMainMethod(ClassPool classPool, String internalClassName, String... arguments) Execute the "main" method of a ProGuardCORE class in the givenClassPoolwith the specified name and the specified arguments. -
executeMethod
public static Object executeMethod(ClassPool classPool, String internalClassName, String methodName, Class<?>[] parameterTypes, Object[] arguments) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException Execute the specified method of a ProGuardCORE class in the givenClassPoolwith the specified name and the specified arguments.
-