com.ashridgetech.jamda.test
Class TestMethodCoderFactory

java.lang.Object
  |
  +--com.ashridgetech.jamda.code.MethodCoderFactory
        |
        +--com.ashridgetech.jamda.test.TestMethodCoderFactory

public class TestMethodCoderFactory
extends MethodCoderFactory

MethodCoderFactory for use in testing. Returns a MethodCoder which prints the method parameters and returns a dummy value.

Version:
1.0
Author:
Paul Boocock

Nested Class Summary
 class TestMethodCoderFactory.Coder
          Method coder for testing
 
Constructor Summary
TestMethodCoderFactory(java.lang.String code)
          Construct a MethodCoderFactory.
 
Method Summary
 MethodCoder newInstance(Operation op, UmlClassGenerator gen)
          Implements a test method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMethodCoderFactory

public TestMethodCoderFactory(java.lang.String code)
Construct a MethodCoderFactory.

Parameters:
code - the code to use
Method Detail

newInstance

public MethodCoder newInstance(Operation op,
                               UmlClassGenerator gen)
Implements a test method.

Specified by:
newInstance in class MethodCoderFactory
Parameters:
op - the Operation being coded
gen - the UmlClassGenerator using the new coder.


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.