org.fuin.srcgen4javassist.factory
Class VarListImplementationFactory

java.lang.Object
  extended by org.fuin.srcgen4javassist.factory.VarListImplementationFactory

public final class VarListImplementationFactory
extends Object

Creates an implementation of one ore more interfaces with a predefined number of fields. An appropriate constructor will also be created.


Constructor Summary
VarListImplementationFactory(SgClassPool pool)
          Constructor with class pool.
 
Method Summary
 SgClass create(String implPackageName, String implClassName, SgClass superClass, SgClass enclosingClass, List<SgVariable> vars, ImplementationFactoryListener listener, Class<?>... intf)
          Creates an implementation of the interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VarListImplementationFactory

public VarListImplementationFactory(SgClassPool pool)
Constructor with class pool.

Parameters:
pool - Pool to use.
Method Detail

create

public final SgClass create(String implPackageName,
                            String implClassName,
                            SgClass superClass,
                            SgClass enclosingClass,
                            List<SgVariable> vars,
                            ImplementationFactoryListener listener,
                            Class<?>... intf)
Creates an implementation of the interface.

Parameters:
implPackageName - Name of the implementation package - Cannot be null.
implClassName - Name of the implementation class - Cannot be null
superClass - Parent class or null.
enclosingClass - Outer class or null.
vars - List of variables the implementation contains as fields - Cannot be null.
listener - Creates the bodies for all methods - Cannot be null.
intf - One or more interfaces.
Returns:
New object implementing the interface.


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