org.apache.activemq.openwire.tool
Class CppClassesGenerator

java.lang.Object
  extended by org.apache.activemq.openwire.tool.OpenWireGenerator
      extended by org.apache.activemq.openwire.tool.MultiSourceGenerator
          extended by org.apache.activemq.openwire.tool.CppClassesGenerator
Direct Known Subclasses:
CppHeadersGenerator

public class CppClassesGenerator
extends MultiSourceGenerator


Field Summary
protected  String targetDir
           
 
Fields inherited from class org.apache.activemq.openwire.tool.MultiSourceGenerator
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclass
 
Fields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion
 
Constructor Summary
CppClassesGenerator()
           
 
Method Summary
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
 
Methods inherited from class org.apache.activemq.openwire.tool.MultiSourceGenerator
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
 
Methods inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
capitalize, decapitalize, getClasses, getJam, getOpenWireOpCode, getOpenwireVersion, isAbstract, isCachedProperty, isMarshallAware, isThrowable, isValidProperty, setJam, setOpenwireVersion, stringValue, stringValue, toCSharpType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetDir

protected String targetDir
Constructor Detail

CppClassesGenerator

public CppClassesGenerator()
Method Detail

run

public Object run()
Overrides:
run in class MultiSourceGenerator

getFilePostFix

protected String getFilePostFix()

toCppType

public String toCppType(org.codehaus.jam.JClass type)
Converts the Java type to a C++ type name


toCppDefaultValue

public String toCppDefaultValue(org.codehaus.jam.JClass type)
Converts the Java type to a C++ default value


toMarshalMethodName

public String toMarshalMethodName(org.codehaus.jam.JClass type)
Converts the Java type to the name of the C++ marshal method to be used


toUnmarshalMethodName

public String toUnmarshalMethodName(org.codehaus.jam.JClass type)
Converts the Java type to the name of the C++ unmarshal method to be used


toUnmarshalCast

public String toUnmarshalCast(org.codehaus.jam.JClass type)
Converts the Java type to a C++ pointer cast


generateLicence

protected void generateLicence(PrintWriter out)

generateFile

protected void generateFile(PrintWriter out)
                     throws Exception
Specified by:
generateFile in class MultiSourceGenerator
Throws:
Exception

getTargetDir

public String getTargetDir()

setTargetDir

public void setTargetDir(String targetDir)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.