net.sf.cglib.proxy
public class InterfaceMaker extends AbstractClassGenerator
Version: $Id: InterfaceMaker.java,v 1.3 2004/09/18 21:22:22 herbyderby Exp $
Constructor Summary | |
---|---|
InterfaceMaker()
Create a new InterfaceMaker . |
Method Summary | |
---|---|
void | add(Signature sig, Type[] exceptions)
Add a method signature to the interface. |
void | add(Method method)
Add a method signature to the interface. |
void | add(Class clazz)
Add all the public methods in the specified class.
|
Class | create()
Create an interface using the current set of method signatures. |
void | generateClass(ClassVisitor v) |
InterfaceMaker
. A new InterfaceMaker
object should be used for each generated interface, and should not
be shared across threads.Parameters: sig the method signature to add to the interface exceptions an array of exception types to declare for the method
Parameters: method the method to add to the interface
getClass
, equals
, hashCode
).Parameters: class the class containing the methods to add to the interface