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

Version:
$Revision: 409828 $

Field Summary
protected  java.lang.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(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
 
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 java.lang.String targetDir
Constructor Detail

CppClassesGenerator

public CppClassesGenerator()
Method Detail

run

public java.lang.Object run()
Overrides:
run in class MultiSourceGenerator

getFilePostFix

protected java.lang.String getFilePostFix()

toCppType

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


toCppDefaultValue

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


toMarshalMethodName

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


toUnmarshalMethodName

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


toUnmarshalCast

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


generateLicence

protected void generateLicence(java.io.PrintWriter out)

generateFile

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

getTargetDir

public java.lang.String getTargetDir()

setTargetDir

public void setTargetDir(java.lang.String targetDir)


Copyright © 2010 Apache Software Foundation. All Rights Reserved.