ca.quine.jcommons.sourceexporter
Class SourceMarshaller

java.lang.Object
  |
  +--ca.quine.jcommons.sourceexporter.SourceMarshaller
Direct Known Subclasses:
CollectionMarshaller, DateMarshaller, DefaultMarshaller, ImmutableMarshaller, NullMarshaller, PrimitiveMarshaller, StringMarshaller

public abstract class SourceMarshaller
extends Object

The superclass for all marshallers.


Constructor Summary
SourceMarshaller()
           
 
Method Summary
protected  MethodSourceReturn createMethodSource(MarshallingContext context, Object object, String fullObjectType, String objectType)
           
abstract  boolean doesMarshal(Object object)
           
abstract  String marshal(ChainOfResponsibility chainOfResponsibility, MarshallingContext context, ClassSource classSource, Object object, boolean marshalAsObject)
           
 void marshal(ChainOfResponsibility chainOfResponsibility, MarshallingContext context, String filename, String packageName, String testClassName, String className, String methodName, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceMarshaller

public SourceMarshaller()
Method Detail

doesMarshal

public abstract boolean doesMarshal(Object object)

marshal

public void marshal(ChainOfResponsibility chainOfResponsibility,
                    MarshallingContext context,
                    String filename,
                    String packageName,
                    String testClassName,
                    String className,
                    String methodName,
                    Object object)
             throws IOException,
                    IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException,
                    ClassNotFoundException,
                    InstantiationException
IOException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
InstantiationException

createMethodSource

protected MethodSourceReturn createMethodSource(MarshallingContext context,
                                                Object object,
                                                String fullObjectType,
                                                String objectType)

marshal

public abstract String marshal(ChainOfResponsibility chainOfResponsibility,
                               MarshallingContext context,
                               ClassSource classSource,
                               Object object,
                               boolean marshalAsObject)
                        throws IOException,
                               IllegalArgumentException,
                               IllegalAccessException,
                               InvocationTargetException,
                               ClassNotFoundException,
                               InstantiationException
IOException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
InstantiationException