org.apache.tuscany.sca.cpp.tools.common
Class CParsingTool
java.lang.Object
org.apache.tuscany.sca.cpp.tools.common.CParsingTool
- Direct Known Subclasses:
- Scagen, ServicesGenerator
- public class CParsingTool
- extends java.lang.Object
The superclass of tools that parse C/C++ code. This CParsingTool provides
some useful common methods.
Constructor Summary |
protected |
CParsingTool(java.lang.String[] args)
|
Method Summary |
protected java.io.File |
checkFile(java.lang.String option)
Checks the source directory looks good. |
protected java.io.File |
maybeCreateDirectory(java.lang.String option)
Checks the target directory and creates it if it doesn't already exist. |
protected Headers |
preparseHeaders(java.lang.String option)
Read in any include files before the main processing of the tool is done. |
protected void |
printUsage()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failed
protected boolean failed
headers
protected Headers headers
CParsingTool
protected CParsingTool(java.lang.String[] args)
throws java.lang.Exception
preparseHeaders
protected Headers preparseHeaders(java.lang.String option)
throws java.lang.Exception
- Read in any include files before the main processing of the tool is done.
This constructs the Headers.
- Throws:
java.lang.Exception
checkFile
protected java.io.File checkFile(java.lang.String option)
throws java.lang.Exception
- Checks the source directory looks good.
- Throws:
java.lang.Exception
maybeCreateDirectory
protected java.io.File maybeCreateDirectory(java.lang.String option)
throws java.lang.Exception
- Checks the target directory and creates it if it doesn't already exist.
- Throws:
java.lang.Exception
printUsage
protected void printUsage()
Copyright 2005 The Apache Software Foundation and Copyright IBM Corp. 2005 All Rights Reserved