org.fuin.srcgen4javassist.factory
Interface ImplementationFactoryListener


public interface ImplementationFactoryListener

Creates the source code for the method implementations.


Method Summary
 void afterClassCreated(SgClass clasz)
          The class was just created and implements the interface.
 java.util.List<java.lang.String> createBody(SgMethod method, java.lang.Class<?>... intf)
          Creates the source code for a method.
 

Method Detail

afterClassCreated

void afterClassCreated(SgClass clasz)
The class was just created and implements the interface. The listener may add constructors or fields here.

Parameters:
clasz - Class without any method yet.

createBody

java.util.List<java.lang.String> createBody(SgMethod method,
                                            java.lang.Class<?>... intf)
Creates the source code for a method.

Parameters:
method - Method to create source code for.
intf - Interfaces the created method belongs to.
Returns:
List of source lines.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.