|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.Platypus
public class Platypus
Main module for Platypus
| Field Summary | |
|---|---|
static OutputFormatObjectFactory |
formatFactory
factory for output-format-dependent classes |
static GDD |
gdd
GDD: global document data: all data re the output file at any given point (singleton) |
static GID |
gid
GID: global input data: all data re the input file at any given moment (singleton) |
static Literals |
lits
resource bundle that holds all the literals used in Platypus (singleton) |
static UserString |
macros
user-defined strings, numerics, and macros |
static SystemStrings |
platyStrings
Platypus system strings. |
| Constructor Summary | |
|---|---|
Platypus()
Creates the global data blocks, gets the literals resource bundle, sets up our default logger, and finally creates the data structures for an output file. |
|
| Method Summary | |
|---|---|
private static void |
addCommandLineToPlatyStrings(java.lang.String[] args)
add command line to table of Platypus system strings |
static GDD.FileType |
identifyOutputFileType(java.lang.String filename)
determine the file type of the output file |
static void |
main(java.lang.String[] args)
This mainline: 1) Sets up the major data structures 2) Writes the version number and copyright notice to the console 3) Checks that no command-line arg is longer than ARG_LEN_MAX bytes. |
static int |
mainProcessing()
The main processing routine. |
static int |
processCommandLine(java.lang.String[] args)
Processes the command line. |
static int |
processCommandLineSwitches(java.lang.String[] args)
processes all the items on the command line, other than the filenames of the input and output files. |
static void |
processInputFile()
the main routine that processes the input file |
private static int |
processPsizeClSwitch(java.lang.String[] args,
int i)
Process the -psize command-line switch ( = page size ) |
private static void |
processVerboseClSwitch()
Process the -verbose command-line switch ( = verbose output ) |
private static void |
processVVerboseClSwitch()
Process the -vverbose command-line switch ( = very verbose output ) -vverbose implies -verbose |
private static void |
showUsage()
Prints the usage message to the console, unless gdd.logger is set to no messages (which only occurs in unit testing) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Literals lits
public static GDD gdd
public static GID gid
public static SystemStrings platyStrings
public static UserString macros
public static OutputFormatObjectFactory formatFactory
| Constructor Detail |
|---|
public Platypus()
| Method Detail |
|---|
public static int processCommandLine(java.lang.String[] args)
args - The command-line args
public static GDD.FileType identifyOutputFileType(java.lang.String filename)
filename - name of the output file (from which we determine format)
private static void addCommandLineToPlatyStrings(java.lang.String[] args)
args - the command-line argumentsprivate static void showUsage()
public static int mainProcessing()
public static int processCommandLineSwitches(java.lang.String[] args)
args - the complete command line as specified by the user
private static void processVerboseClSwitch()
private static void processVVerboseClSwitch()
private static int processPsizeClSwitch(java.lang.String[] args,
int i)
args - the command-line argumentsi - where -psize is in the array
public static void processInputFile()
public static void main(java.lang.String[] args)
args - the command-line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||