public class JavaMarshallingGenerator extends MultiSourceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected List<org.codehaus.jam.JClass> |
concreteClasses |
protected File |
factoryFile |
protected String |
factoryFileName |
protected String |
indent |
protected String |
targetDir |
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclassfilePostFix, jam, openwireVersion| Constructor and Description |
|---|
JavaMarshallingGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateFactory(PrintWriter out) |
protected void |
generateFile(PrintWriter out) |
protected void |
generateLooseMarshalBody(PrintWriter out) |
protected void |
generateLooseUnmarshalBody(PrintWriter out) |
protected void |
generateLooseUnmarshalBodyForArrayProperty(PrintWriter out,
org.codehaus.jam.JProperty property,
org.codehaus.jam.JAnnotationValue size) |
protected void |
generateLooseUnmarshalBodyForProperty(PrintWriter out,
org.codehaus.jam.JProperty property,
org.codehaus.jam.JAnnotationValue size) |
protected int |
generateTightMarshal1Body(PrintWriter out) |
protected void |
generateTightMarshal2Body(PrintWriter out) |
protected void |
generateTightUnmarshalBody(PrintWriter out) |
protected void |
generateTightUnmarshalBodyForArrayProperty(PrintWriter out,
org.codehaus.jam.JProperty property,
org.codehaus.jam.JAnnotationValue size) |
protected void |
generateTightUnmarshalBodyForProperty(PrintWriter out,
org.codehaus.jam.JProperty property,
org.codehaus.jam.JAnnotationValue size) |
protected String |
getBaseClassName(org.codehaus.jam.JClass jclass) |
protected String |
getClassName(org.codehaus.jam.JClass jclass) |
List<org.codehaus.jam.JClass> |
getConcreteClasses() |
File |
getFactoryFile() |
String |
getFactoryFileName() |
String |
getIndent() |
protected String |
getMandatoryFlag(org.codehaus.jam.JAnnotation annotation)
Returns whether or not the given annotation has a mandatory flag on it or
not
|
String |
getTargetDir() |
protected void |
initialiseManuallyMaintainedClasses() |
protected void |
processClass(org.codehaus.jam.JClass jclass) |
protected void |
processFactory() |
Object |
run() |
void |
setConcreteClasses(List<org.codehaus.jam.JClass> concreteClasses) |
void |
setFactoryFile(File factoryFile) |
void |
setFactoryFileName(String factoryFileName) |
void |
setIndent(String indent) |
void |
setTargetDir(String sourceDir) |
getAbstractClassText, getBaseClass, getClassName, getDestDir, getDestFile, getJclass, getManuallyMaintainedClasses, getProperties, getSimpleName, getSuperclass, isAbstractClass, isMarshallerAware, isValidClass, setBaseClass, setClassName, setDestDir, setDestFile, setJclass, setManuallyMaintainedClasses, setSimpleName, setSuperclasscapitalize, decapitalize, getClasses, getJam, getOpenWireOpCode, getOpenwireVersion, isAbstract, isCachedProperty, isMarshallAware, isThrowable, isValidProperty, setJam, setOpenwireVersion, stringValue, stringValue, toCSharpTypeprotected List<org.codehaus.jam.JClass> concreteClasses
protected File factoryFile
protected String factoryFileName
public JavaMarshallingGenerator()
public Object run()
run in class MultiSourceGeneratorprotected void generateFile(PrintWriter out) throws Exception
generateFile in class MultiSourceGeneratorExceptionprotected void processFactory()
protected void generateFactory(PrintWriter out)
protected void processClass(org.codehaus.jam.JClass jclass)
processClass in class MultiSourceGeneratorprotected String getClassName(org.codehaus.jam.JClass jclass)
getClassName in class MultiSourceGeneratorprotected String getBaseClassName(org.codehaus.jam.JClass jclass)
getBaseClassName in class MultiSourceGeneratorprotected void initialiseManuallyMaintainedClasses()
initialiseManuallyMaintainedClasses in class MultiSourceGeneratorprotected void generateTightUnmarshalBody(PrintWriter out)
protected void generateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected void generateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected int generateTightMarshal1Body(PrintWriter out)
protected void generateTightMarshal2Body(PrintWriter out)
protected void generateLooseMarshalBody(PrintWriter out)
protected void generateLooseUnmarshalBody(PrintWriter out)
protected void generateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected String getMandatoryFlag(org.codehaus.jam.JAnnotation annotation)
public List<org.codehaus.jam.JClass> getConcreteClasses()
public void setConcreteClasses(List<org.codehaus.jam.JClass> concreteClasses)
public File getFactoryFile()
public void setFactoryFile(File factoryFile)
public String getFactoryFileName()
public void setFactoryFileName(String factoryFileName)
public String getTargetDir()
public void setTargetDir(String sourceDir)
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.