org.fuin.jmsmvc4swing.model
Class AbstractMethodGenerator<I extends Controller,T>

java.lang.Object
  extended by org.fuin.jmsmvc4swing.model.AbstractGenerator<I,T>
      extended by org.fuin.jmsmvc4swing.model.AbstractMethodGenerator<I,T>
Type Parameters:
I - The controller interface the created class is for.
T - Type of the class the generator will create.
Direct Known Subclasses:
ArgumentsGenerator, MethodCallSenderGenerator, MethodHandlerGenerator, MethodResultReceiverGenerator, MethodResultSenderGenerator

public abstract class AbstractMethodGenerator<I extends Controller,T>
extends AbstractGenerator<I,T>

Generates classes depending on a method.


Constructor Summary
AbstractMethodGenerator(org.fuin.srcgen4javassist.SgClassPool pool, ControllerModel<I> model, String basePackage, org.fuin.srcgen4javassist.SgMethod intfMethod, String simpleDestClass)
          Constructor.
 
Method Summary
protected  org.fuin.srcgen4javassist.SgMethod getIntfMethod()
          Returns the method this class depends on.
 
Methods inherited from class org.fuin.jmsmvc4swing.model.AbstractGenerator
getBasePackage, getDestClass, getDestPackage, getModel, getPool, getSimpleDestClass, getSubPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMethodGenerator

public AbstractMethodGenerator(org.fuin.srcgen4javassist.SgClassPool pool,
                               ControllerModel<I> model,
                               String basePackage,
                               org.fuin.srcgen4javassist.SgMethod intfMethod,
                               String simpleDestClass)
Constructor.

Parameters:
pool - Class pool to use.
model - Controller model.
basePackage - Base package.
intfMethod - Method from the interface the class depends on.
simpleDestClass - Name of the destination class (without package).
Method Detail

getIntfMethod

protected final org.fuin.srcgen4javassist.SgMethod getIntfMethod()
Returns the method this class depends on.

Returns:
Interface method.


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