com.ashridgetech.jamda.code
Class MethodCoderFactory

java.lang.Object
  |
  +--com.ashridgetech.jamda.code.MethodCoderFactory
Direct Known Subclasses:
TestMethodCoderFactory

public abstract class MethodCoderFactory
extends java.lang.Object

Base class for factory classes which create MethodCoders. Subclasses must implement the newInstance(com.ashridgetech.jamda.uml.Operation, com.ashridgetech.jamda.code.UmlClassGenerator) method. A typical subclass will create instances of an inner class which extends MethodCoder, so that it can reference any general parameters of the MethodCoderFactory.

Version:
1.0
Author:
Paul Boocock

Constructor Summary
protected MethodCoderFactory()
          Construct a MethodCoderFactory.
 
Method Summary
abstract  MethodCoder newInstance(Operation op, UmlClassGenerator gen)
          Must be implemented by subclasses to create a new MethodCoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCoderFactory

protected MethodCoderFactory()
Construct a MethodCoderFactory.

Method Detail

newInstance

public abstract MethodCoder newInstance(Operation op,
                                        UmlClassGenerator gen)
Must be implemented by subclasses to create a new MethodCoder.

Parameters:
op - the Operation being coded
gen - the UmlClassGenerator using the new coder.


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.