Class CppClassesGenerator
java.lang.Object
org.apache.activemq.openwire.tool.OpenWireGenerator
org.apache.activemq.openwire.tool.MultiSourceGenerator
org.apache.activemq.openwire.tool.CppClassesGenerator
- Direct Known Subclasses:
CppHeadersGenerator
-
Field Summary
FieldsFields inherited from class org.apache.activemq.openwire.tool.MultiSourceGenerator
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclassFields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateFile(PrintWriter out) protected voidprotected Stringrun()voidsetTargetDir(String targetDir) toCppDefaultValue(org.codehaus.jam.JClass type) Converts the Java type to a C++ default valuetoCppType(org.codehaus.jam.JClass type) Converts the Java type to a C++ type nametoMarshalMethodName(org.codehaus.jam.JClass type) Converts the Java type to the name of the C++ marshal method to be usedtoUnmarshalCast(org.codehaus.jam.JClass type) Converts the Java type to a C++ pointer casttoUnmarshalMethodName(org.codehaus.jam.JClass type) Converts the Java type to the name of the C++ unmarshal method to be usedMethods 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, setSuperclassMethods 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
-
Field Details
-
targetDir
-
-
Constructor Details
-
CppClassesGenerator
public CppClassesGenerator()
-
-
Method Details
-
run
- Overrides:
runin classMultiSourceGenerator
-
getFilePostFix
-
toCppType
Converts the Java type to a C++ type name -
toCppDefaultValue
Converts the Java type to a C++ default value -
toMarshalMethodName
Converts the Java type to the name of the C++ marshal method to be used -
toUnmarshalMethodName
Converts the Java type to the name of the C++ unmarshal method to be used -
toUnmarshalCast
Converts the Java type to a C++ pointer cast -
generateLicence
-
generateFile
- Specified by:
generateFilein classMultiSourceGenerator- Throws:
Exception
-
getTargetDir
-
setTargetDir
-