public class C2DataDeps extends MainCmd
MainCmd.Argument, MainCmd.SetArgument
Modifier and Type | Field and Description |
---|---|
(package private) Report |
console
Aggregation to the Console implementation class.
|
private java.util.List<FileFunctions.FileAndBasePath> |
listFileIn
Input files.
|
protected java.util.List<ZbnfParseResultItem> |
listParsed |
private ZbnfParser |
parser
The parser.
|
static int |
revisionInfo
Revision number
2012-06-08: Creation, adapted from Header2Reflection!
|
(package private) java.lang.String |
sFileIn
Cmdline-argument, set on -i option.
|
private java.lang.String |
sFileZbnf |
private java.lang.String |
sOutDir |
argList, bHelpIswritten, cmdLineArgs, currdir, dateFormatMsg, errCmdline, fReport, kError_writeInfoDirectly, kInfo_writeInfoDirectly, kInfoln_writeInfoDirectly, kWarning_writeInfoDirectly, listAboutInfo, listHelpInfo, logMessageImplReport, mError_writeInfoDirectly, mNewln_writeInfoDirectly, msgDisp, mWarning_writeInfoDirectly, nLevelDisplayToReport, nLogLevel, nReportLevelDisplay, outCmdline, sVersion
anytime, eventOrder, exitSuccessfull, exitUserAbort, exitWithArgumentError, exitWithErrors, exitWithFileProblems, exitWithNotes, exitWithWarnings, fineEventOrder, interested, version
dateFormat, debug, error, fineDebug, fineInfo, info, minSecondsFormat, mNeverOutputToDisplay, mReportLevel, warning
Modifier | Constructor and Description |
---|---|
private |
C2DataDeps(java.lang.String[] args)
Constructor of the main class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
callWithoutArguments()
Invoked from parseArguments if no argument is given.
|
protected boolean |
checkArguments()
Checks the cmdline arguments relation together.
|
(package private) void |
execute() |
(package private) boolean |
init() |
static void |
main(java.lang.String[] args)
main started from java
|
void |
parseArguments(Header2Reflection main,
java.lang.String[] args)
The parseArguments is replaced by a variant with reference to the working class,
using the super.parseArguments() indside.
|
(package private) boolean |
parseCfile(java.io.File headerFile) |
(package private) boolean |
setOutDir(java.lang.String sFile) |
(package private) void |
stop()
Helper method for debugging.
|
protected boolean |
testArgument(java.lang.String arg,
int nArg)
Tests one argument.
|
addAboutInfo, addArgument, addHelpInfo, addMsgConfig, addStandardHelpInfo, append, append, append, close, currdir, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, exit, flush, flushReport, getArgument, getExitErrorLevel, getLogging_ifc, getLogMessageErrorConsole, getLogMessageOutputConsole, getLogMessageOutputFile, getReportFileName, getReportLevel, getReportLevelFromIdent, isOnline, openReportfile, parseArguments, parseArguments, replaceEnv, report, report, reportln, reportln, sendMsg, sendMsgTime, sendMsgVaList, setcurrdir, setExitErrorLevel, setLogMessageDestination, setOutputChannels, setReportLevel, setReportLevelToIdent, startCmdLine, startCmdLine, switchToWindowOrStartCmdline, writeAboutInfo, writeDirectly, writeError, writeError, writeErrorDirectly, writeHelpInfo, writeInfo, writeInfoln, writeStackTrace, writeWarning, XXXassertion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
msgSec, timeCurr, timeMsg
public static final int revisionInfo
final Report console
private final java.util.List<FileFunctions.FileAndBasePath> listFileIn
private ZbnfParser parser
private java.lang.String sFileZbnf
private java.lang.String sOutDir
protected java.util.List<ZbnfParseResultItem> listParsed
java.lang.String sFileIn
private C2DataDeps(java.lang.String[] args)
public static void main(java.lang.String[] args)
public void parseArguments(Header2Reflection main, java.lang.String[] args) throws java.text.ParseException
java.text.ParseException
protected boolean testArgument(java.lang.String arg, int nArg)
testArgument
in class MainCmd
argc
- String of the actual parsed argument from cmd linenArg
- number of the argument in order of the command line, the first argument is number 1.java.io.FileNotFoundException
protected void callWithoutArguments() throws java.text.ParseException
callWithoutArguments
in class MainCmd
java.text.ParseException
protected boolean checkArguments()
checkArguments
in class MainCmd
boolean setOutDir(java.lang.String sFile)
boolean init() throws java.nio.charset.IllegalCharsetNameException, java.nio.charset.UnsupportedCharsetException, java.io.FileNotFoundException, java.io.IOException
java.nio.charset.IllegalCharsetNameException
java.nio.charset.UnsupportedCharsetException
java.io.FileNotFoundException
java.io.IOException
void execute()
boolean parseCfile(java.io.File headerFile)
void stop()