public class CppClassesGenerator extends MultiSourceGenerator
Modifier and Type | Field and Description |
---|---|
protected java.lang.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(java.io.PrintWriter out) |
protected void |
generateLicence(java.io.PrintWriter out) |
protected java.lang.String |
getFilePostFix() |
java.lang.String |
getTargetDir() |
java.lang.Object |
run() |
void |
setTargetDir(java.lang.String targetDir) |
java.lang.String |
toCppDefaultValue(org.codehaus.jam.JClass type)
Converts the Java type to a C++ default value
|
java.lang.String |
toCppType(org.codehaus.jam.JClass type)
Converts the Java type to a C++ type name
|
java.lang.String |
toMarshalMethodName(org.codehaus.jam.JClass type)
Converts the Java type to the name of the C++ marshal method to be used
|
java.lang.String |
toUnmarshalCast(org.codehaus.jam.JClass type)
Converts the Java type to a C++ pointer cast
|
java.lang.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 java.lang.Object run()
run
in class MultiSourceGenerator
protected java.lang.String getFilePostFix()
public java.lang.String toCppType(org.codehaus.jam.JClass type)
public java.lang.String toCppDefaultValue(org.codehaus.jam.JClass type)
public java.lang.String toMarshalMethodName(org.codehaus.jam.JClass type)
public java.lang.String toUnmarshalMethodName(org.codehaus.jam.JClass type)
public java.lang.String toUnmarshalCast(org.codehaus.jam.JClass type)
protected void generateLicence(java.io.PrintWriter out)
protected void generateFile(java.io.PrintWriter out) throws java.lang.Exception
generateFile
in class MultiSourceGenerator
java.lang.Exception
public java.lang.String getTargetDir()
public void setTargetDir(java.lang.String targetDir)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.