ca.quine.jcommons.sourceexporter
Class StringMarshaller

java.lang.Object
  |
  +--ca.quine.jcommons.sourceexporter.SourceMarshaller
        |
        +--ca.quine.jcommons.sourceexporter.StringMarshaller

public class StringMarshaller
extends SourceMarshaller

Marshals a String to source code, handling any backslash escapes and quoting.


Constructor Summary
StringMarshaller()
           
 
Method Summary
 boolean doesMarshal(Object object)
           
 String marshal(ChainOfResponsibility chainOfResponsibility, MarshallingContext context, ClassSource classSource, Object object, boolean marshalAsObject)
           
 
Methods inherited from class ca.quine.jcommons.sourceexporter.SourceMarshaller
createMethodSource, marshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMarshaller

public StringMarshaller()
Method Detail

doesMarshal

public boolean doesMarshal(Object object)
Specified by:
doesMarshal in class SourceMarshaller

marshal

public String marshal(ChainOfResponsibility chainOfResponsibility,
                      MarshallingContext context,
                      ClassSource classSource,
                      Object object,
                      boolean marshalAsObject)
Specified by:
marshal in class SourceMarshaller