public class CodegenProxyCreator extends Object
| Constructor and Description |
|---|
CodegenProxyCreator(String className,
Class sc,
Class[] interfaces,
Method[] methods) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
create(Class<?> anchorClass,
boolean debug,
PrintStream ps)
Construct a generator for a proxy class
that implements the given interfaces and extends superClass.
|
Class<?> |
create(ProtectionDomain pd,
ClassLoader cl,
boolean debug,
PrintStream ps)
Deprecated.
|
@Deprecated public Class<?> create(ProtectionDomain pd, ClassLoader cl, boolean debug, PrintStream ps)
create(Class, boolean, PrintStream) Object invoke( int methodNumber, Object[] args ) throws Throwable
Each method in methods is implemented by a method that:
Note that the generated methods ignore exceptions. It is assumed that the invoke method may throw any desired exception.
pd - the protection domain of the generated classcl - the classloader in which to generate the classdebug - if true, generate debug messagesps - a PrintStream to which the debug messages should be writtenpublic Class<?> create(Class<?> anchorClass, boolean debug, PrintStream ps)
Object invoke( int methodNumber, Object[] args ) throws Throwable
Each method in methods is implemented by a method that:
Note that the generated methods ignore exceptions. It is assumed that the invoke method may throw any desired exception.
anchorClass - a class in whose classloader the new class should be generateddebug - if true, generate debug messagesps - a PrintStream to which the debug messages should be writtenCopyright © 2017–2019 Eclipse Foundation. All rights reserved.