org.fuin.srcgen4javassist.factory
Class VarListImplementationFactory
java.lang.Object
org.fuin.srcgen4javassist.factory.VarListImplementationFactory
public final class VarListImplementationFactory
- extends java.lang.Object
Creates an implementation of one ore more interfaces with a predefined number
of fields. An appropriate constructor will also be created.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VarListImplementationFactory
public VarListImplementationFactory(SgClassPool pool)
- Constructor with class pool.
- Parameters:
pool - Pool to use.
create
public final SgClass create(java.lang.String implPackageName,
java.lang.String implClassName,
SgClass superClass,
SgClass enclosingClass,
java.util.List<SgVariable> vars,
ImplementationFactoryListener listener,
java.lang.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 nullsuperClass - 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.