Package EDU.purdue.jtb
Class JTB
java.lang.Object
EDU.purdue.jtb.JTB
Java Tree Builder (JTB) Driver.
Class JTB
contains the main() method of the program as well as related methods.
JTB enables to be run in parallel threads on different grammars.
TESTCASE some to add-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
JJFileAnnotator
errorstatic final int
ClassesFinder
errorstatic final int
Command line errorstatic final int
JTB.InvalidCmdLineException
exceptionstatic final int
static final int
Running external generator errorstatic final int
Parsing file options errorstatic final int
GlobalDataBuilder
errorstatic final int
IO exceptionfinal JTBOptions
The global JTB optionsstatic final int
No errorstatic final int
Programmatic errorstatic final int
Other errorstatic final int
ParseException
exceptionstatic final int
Programmatic errorstatic final int
SemanticChecker
error -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Non standard main static method returning an error code.static void
Standard main method.
CallsSystem.exit(int)
upon termination with the following status: for specific types of errors:CL_ERR
,GDB_ERR
,SC_ERR
,CF_ERR
,ANN_ERR
,DI_ERR
,FO_ERR
,CL_EX
,PARSE_EX
,EG_ERR
,IO_EX
),OTHER_EX
),PROG_ERR
),OTHER_THR
) or 0 if no error, or the number of errors Usedo_main(String[])
to get directly the status without callingSystem.exit(int)
.static void
printlnError
(String aMsg) Prints an error message on stderr.static void
printlnInfo
(String aMsg) Prints an information message on stdout.
-
Field Details
-
jopt
The global JTB options -
OK
public static final int OKNo error- See Also:
-
CL_ERR
public static final int CL_ERRCommand line error- See Also:
-
GDB_ERR
public static final int GDB_ERRGlobalDataBuilder
error- See Also:
-
SC_ERR
public static final int SC_ERRSemanticChecker
error- See Also:
-
CF_ERR
public static final int CF_ERRClassesFinder
error- See Also:
-
ANN_ERR
public static final int ANN_ERRJJFileAnnotator
error- See Also:
-
DI_ERR
public static final int DI_ERR- See Also:
-
FO_ERR
public static final int FO_ERRParsing file options error- See Also:
-
CL_EX
public static final int CL_EXJTB.InvalidCmdLineException
exception- See Also:
-
PARSE_EX
public static final int PARSE_EXParseException
exception- See Also:
-
EG_ERR
public static final int EG_ERRRunning external generator error- See Also:
-
IO_EX
public static final int IO_EXIO exception- See Also:
-
OTHER_EX
public static final int OTHER_EXProgrammatic error- See Also:
-
PROG_ERR
public static final int PROG_ERRProgrammatic error- See Also:
-
OTHER_THR
public static final int OTHER_THROther error- See Also:
-
-
Constructor Details
-
JTB
public JTB()
-
-
Method Details
-
main
Standard main method.
CallsSystem.exit(int)
upon termination with the following status:- for specific types of errors:
CL_ERR
,GDB_ERR
,SC_ERR
,CF_ERR
,ANN_ERR
,DI_ERR
,FO_ERR
,CL_EX
,PARSE_EX
,EG_ERR
,IO_EX
),OTHER_EX
),PROG_ERR
),OTHER_THR
) or- 0 if no error, or
- the number of errors
Usedo_main(String[])
to get directly the status without callingSystem.exit(int)
.- Parameters:
aArgs
- - the command line arguments
- for specific types of errors:
-
do_main
Non standard main static method returning an error code. -
printlnInfo
Prints an information message on stdout.- Parameters:
aMsg
- - a message
-
printlnError
Prints an error message on stderr.- Parameters:
aMsg
- - a message
-