public class Java2C extends org.vishia.mainCmd.MainCmd
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, debug, error, eventOrder, exitSuccessfull, exitUserAbort, exitWithArgumentError, exitWithErrors, exitWithFileProblems, exitWithNotes, exitWithWarnings, fineDebug, fineEventOrder, fineInfo, info, interested, mNeverOutputToDisplay, mReportLevel, version, warning
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.
|
static void |
main(java.lang.String[] args)
main started from cmd line.
|
void |
parseArguments(Java2C_Main.CmdlineArgs argData,
java.lang.String[] args)
parses all cmd line arguments.
|
protected boolean |
testArgument(java.lang.String arg,
int nArg)
Tests one argument.
|
addAboutInfo, addArgument, addHelpInfo, addMsgConfig, addStandardHelpInfo, 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, 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
public static void main(java.lang.String[] args)
Java2C_Main.singleton
is instanciated,
all cmd line arguments are setted to it. The special cmd line arguments are:
-if:CONFIGFILE | file contains configuration for translating,
syntax see Java2C_Main#setConfigFile(String) . |
-o:OUTPUT | outputpath, to this folder the file are written |
-syntax:SYNTAXDIR | path to the directory, for Java2C.zbnf, Java2Cstc.zbnf |
MainCmd.addStandardHelpInfo()
.public void parseArguments(Java2C_Main.CmdlineArgs argData, java.lang.String[] args) throws java.text.ParseException
MainCmd
,
the MainCmd.parseArguments() is called inside.
Before it is called, the aggregation to the Java2C-implementation class is set.java.text.ParseException
protected boolean testArgument(java.lang.String arg, int nArg)
MainCmd.parseArgument(String[])
.
It is abstract in the superclass MainCmd and have to be overwritten from the user.testArgument
in class org.vishia.mainCmd.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.protected void callWithoutArguments() throws java.text.ParseException
callWithoutArguments
in class org.vishia.mainCmd.MainCmd
java.text.ParseException
protected boolean checkArguments()
checkArguments
in class org.vishia.mainCmd.MainCmd