|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.vishia.mainCmd.MainCmd
org.vishia.java2C.Java2C
public class Java2C
Main class of Java2C-translator to organize call from cmd line. TODO call from ANT should be implemented.
| Field Summary | |
|---|---|
(package private) Report |
console
Aggregation to the Console ouput (implementation class of Report). |
private Java2C_Main.CmdlineArgs |
main
The main instance for the Java2C translator. |
| Fields inherited from class org.vishia.mainCmd.MainCmd |
|---|
cmdLineArgs, fReport, kError_writeInfoDirectly, kInfo_writeInfoDirectly, kInfoln_writeInfoDirectly, kWarning_writeInfoDirectly, listAboutInfo, listHelpInfo, mError_writeInfoDirectly, mNewln_writeInfoDirectly, mWarning_writeInfoDirectly, nLevelDisplayToReport, nReportLevel, nReportLevelDisplay |
| Fields inherited from interface org.vishia.mainCmd.Report |
|---|
anytime, debug, error, eventOrder, exitSuccessfull, exitUserAbort, exitWithArgumentError, exitWithErrors, exitWithFileProblems, exitWithNotes, exitWithWarnings, fineDebug, fineEventOrder, fineInfo, info, interested, mNeverOutputToDisplay, mReportLevel, warning |
| Constructor Summary | |
|---|---|
private |
Java2C(java.lang.String[] args)
Constructor of the main class. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Report console
private Java2C_Main.CmdlineArgs main
Java2C_Main.singleton - instance.
Such an instance is also used if the translator is settled outside calling per cmdLine.
The cmd line arguments are set to this instance.
The instance is created before the command line arguments are parsed,
because the cmd line argument values are set directly to this instance.
| Constructor Detail |
|---|
private Java2C(java.lang.String[] args)
| Method Detail |
|---|
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 MainCmdargc - 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 MainCmdjava.text.ParseExceptionprotected boolean checkArguments()
checkArguments in class MainCmd
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||