All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----epp.Epp
Epp
class defines the EPP main routine.
When you execute the "epp" command from the command line, initially, a program called "EPP main routine" will be invoked. The EPP main routine will first interpret optional arguments specified at the command line. Then, it will compare the timestamps of the specified files to select the files to expand and will begin expanding those files.
Files are processed as follows.
First, the files are scanned and a list of plug-ins specified by the
#epp
command is created.
Following that, system mixins that comprise the "standard Java preprocessor"
and all system mixins that were specified by the #epp
command
are combined together to build a single class. (This is not a Java class but
an Ld-2 class.)
Then, an instance of that class is created, its initialization method
is called, and the file conversion process begins.
Plug-ins cannot extend the behaviour of an Epp
class.
Instead, a subclass of an Epp
class can be created and
invoked to extend the behaviour of the main routine.
Assuming this approach will be taken, most of the methods of
the Epp
class are defined as non-static methods.
main
and is the actual main routine.
EppUserError
.
eppMain
, which is the actual main routine.
public Epp()
public static void main(String argv[])
eppMain
, which is the actual main routine.
This method is called when epp
is invoked.
The implementation is shown below.
new Epp().eppMain(argv);
public void eppMain(String argv[])
main
and is the actual main routine.
public int parseOption(String argv[], int argp)printUsage
public void printUsage()printAllOptions
public void printAllOptions()importantOptions
public String[] importantOptions()allOptions
public String[] allOptions()checkEppoutDirectory
public void checkEppoutDirectory()processFilesAndCatchEppUserError
public void processFilesAndCatchEppUserError(String argv[], int argp)processFiles
public void processFiles(String argv[], int argp)makeInputFileNameList
public String[] makeInputFileNameList(String argv[], int argp)collectInputFileNames
public void collectInputFileNames(String inputFileName, Vector names)globalEpp
public void globalEpp(String inputFileNames[])makeEppGlobalProcessor
public FileInfo makeEppGlobalProcessor()separateEpp
public void separateEpp(String inputFileNames[])makeEppPreProcessor
public FileInfo makeEppPreProcessor(String inputFileName, String outputFileName)processPhase1
public void processPhase1(FileInfo fileInfo)processPhase2
public void processPhase2(FileInfo fileInfo)makeEppObject
public FileInfo makeEppObject(String inputFileName, String outputFileName, Object eppCommands[][])makeFileInfo
public FileInfo makeFileInfo(String inputFileName, Obj preprocessor, Hashtable classTable, DVenv env)loadDefaultConfiguration
public void loadDefaultConfiguration()collectEppCommands
public Object[][] collectEppCommands(String inputFileName)parseEppCommand
public void parseEppCommand(EppInputStream in, Vector commands)eppCommandUsage
public Error eppCommandUsage(EppInputStream in)skipSpace
public void skipSpace(EppInputStream in)skipComment
public void skipComment(EppInputStream in)eppMainRoutineError
public Error eppMainRoutineError(String str)getClassNameFromFileName
public static String getClassNameFromFileName(String inputFileName)
public static boolean isGeneratedFile(String path)
public static Error error(String str)
EppUserError
.
Call this method when a user generated error occurs.
User generated errors are EPP and EPP plug-in user (normal Java programmers)
errors that may be caused by input program syntax errors, for example.
EppUserError
exceptions are normally caught and handled
by the EPP error recovery mechanism.
public static Error fatal(String str)
throw Epp.fatal("message");This method is defined as follows.
public static Error fatal(String str){ return new Error("EPP FATAL: "+ str); }
All Packages Class Hierarchy This Package Previous Next Index