Class CHeadersGenerator
- java.lang.Object
-
- org.apache.activemq.openwire.tool.OpenWireGenerator
-
- org.apache.activemq.openwire.tool.SingleSourceGenerator
-
- org.apache.activemq.openwire.tool.CHeadersGenerator
-
- Direct Known Subclasses:
CSourcesGenerator
public class CHeadersGenerator extends SingleSourceGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected String
targetDir
-
Fields inherited from class org.apache.activemq.openwire.tool.SingleSourceGenerator
baseClass, className, destFile, jclass, manuallyMaintainedClasses, simpleName, sortedClasses, superclass
-
Fields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion
-
-
Constructor Summary
Constructors Constructor Description CHeadersGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateFile(PrintWriter out)
protected void
generateLicence(PrintWriter out)
protected void
generateSetup(PrintWriter out)
protected void
generateTearDown(PrintWriter out)
String
getTargetDir()
Object
run()
void
setTargetDir(String targetDir)
protected List<org.codehaus.jam.JClass>
sort(List<org.codehaus.jam.JClass> source)
Sort the class list so that base classes come up first.-
Methods inherited from class org.apache.activemq.openwire.tool.SingleSourceGenerator
getAbstractClassText, getBaseClass, getBaseClassName, getClassName, getClassName, getDestFile, getJclass, getManuallyMaintainedClasses, getProperties, getSimpleName, getSuperclass, initialiseManuallyMaintainedClasses, isAbstractClass, isMarshallerAware, isValidClass, setBaseClass, setClassName, 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
-
-
-
-
Field Detail
-
targetDir
protected String targetDir
-
-
Method Detail
-
run
public Object run()
- Overrides:
run
in classSingleSourceGenerator
-
getTargetDir
public String getTargetDir()
-
setTargetDir
public void setTargetDir(String targetDir)
-
generateLicence
protected void generateLicence(PrintWriter out)
-
sort
protected List<org.codehaus.jam.JClass> sort(List<org.codehaus.jam.JClass> source)
Sort the class list so that base classes come up first.- Overrides:
sort
in classSingleSourceGenerator
-
generateSetup
protected void generateSetup(PrintWriter out)
- Overrides:
generateSetup
in classSingleSourceGenerator
-
generateFile
protected void generateFile(PrintWriter out) throws Exception
- Specified by:
generateFile
in classSingleSourceGenerator
- Throws:
Exception
-
generateTearDown
protected void generateTearDown(PrintWriter out)
- Overrides:
generateTearDown
in classSingleSourceGenerator
-
-