public class CppClassesGenerator extends MultiSourceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected String |
targetDir |
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclassfilePostFix, jam, openwireVersion| Constructor and Description |
|---|
CppClassesGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateFile(PrintWriter out) |
protected void |
generateLicence(PrintWriter out) |
protected String |
getFilePostFix() |
String |
getTargetDir() |
Object |
run() |
void |
setTargetDir(String targetDir) |
String |
toCppDefaultValue(org.codehaus.jam.JClass type)
Converts the Java type to a C++ default value
|
String |
toCppType(org.codehaus.jam.JClass type)
Converts the Java type to a C++ type name
|
String |
toMarshalMethodName(org.codehaus.jam.JClass type)
Converts the Java type to the name of the C++ marshal method to be used
|
String |
toUnmarshalCast(org.codehaus.jam.JClass type)
Converts the Java type to a C++ pointer cast
|
String |
toUnmarshalMethodName(org.codehaus.jam.JClass type)
Converts the Java type to the name of the C++ unmarshal method to be used
|
getAbstractClassText, getBaseClass, getBaseClassName, getClassName, getClassName, getDestDir, getDestFile, getJclass, getManuallyMaintainedClasses, getProperties, getSimpleName, getSuperclass, initialiseManuallyMaintainedClasses, isAbstractClass, isMarshallerAware, isValidClass, processClass, setBaseClass, setClassName, setDestDir, setDestFile, setJclass, setManuallyMaintainedClasses, setSimpleName, setSuperclasscapitalize, decapitalize, getClasses, getJam, getOpenWireOpCode, getOpenwireVersion, isAbstract, isCachedProperty, isMarshallAware, isThrowable, isValidProperty, setJam, setOpenwireVersion, stringValue, stringValue, toCSharpTypepublic CppClassesGenerator()
public Object run()
run in class MultiSourceGeneratorprotected String getFilePostFix()
public String toCppType(org.codehaus.jam.JClass type)
public String toCppDefaultValue(org.codehaus.jam.JClass type)
public String toMarshalMethodName(org.codehaus.jam.JClass type)
public String toUnmarshalMethodName(org.codehaus.jam.JClass type)
public String toUnmarshalCast(org.codehaus.jam.JClass type)
protected void generateLicence(PrintWriter out)
protected void generateFile(PrintWriter out) throws Exception
generateFile in class MultiSourceGeneratorExceptionpublic String getTargetDir()
public void setTargetDir(String targetDir)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.