public class CppClassesGenerator extends MultiSourceGenerator
Modifier and Type | Field and Description |
---|---|
protected String |
targetDir |
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclass
filePostFix, 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, setSuperclass
capitalize, decapitalize, getClasses, getJam, getOpenWireOpCode, getOpenwireVersion, isAbstract, isCachedProperty, isMarshallAware, isThrowable, isValidProperty, setJam, setOpenwireVersion, stringValue, stringValue, toCSharpType
public CppClassesGenerator()
public Object run()
run
in class MultiSourceGenerator
protected 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 MultiSourceGenerator
Exception
public String getTargetDir()
public void setTargetDir(String targetDir)
Copyright © 2005–2022 FuseSource, Corp.. All rights reserved.