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.
 
 Epp()
	Epp()
   
 allOptions()
	allOptions()
   checkEppoutDirectory()
	checkEppoutDirectory()
   collectEppCommands(String)
	collectEppCommands(String)
   collectInputFileNames(String, Vector)
	collectInputFileNames(String, Vector)
   eppCommandUsage(EppInputStream)
	eppCommandUsage(EppInputStream)
   eppMain(String[])
	eppMain(String[])
  main and is the actual main routine.
   eppMainRoutineError(String)
	eppMainRoutineError(String)
   error(String)
	error(String)
  EppUserError.
   fatal(String)
	fatal(String)
   getClassNameFromFileName(String)
	getClassNameFromFileName(String)
   globalEpp(String[])
	globalEpp(String[])
   importantOptions()
	importantOptions()
   isGeneratedFile(String)
	isGeneratedFile(String)
   loadDefaultConfiguration()
	loadDefaultConfiguration()
   main(String[])
	main(String[])
  eppMain, which is the actual main routine.
   makeEppGlobalProcessor()
	makeEppGlobalProcessor()
   makeEppObject(String, String, Object[][])
	makeEppObject(String, String, Object[][])
   makeEppPreProcessor(String, String)
	makeEppPreProcessor(String, String)
   makeFileInfo(String, Obj, Hashtable, DVenv)
	makeFileInfo(String, Obj, Hashtable, DVenv)
   makeInputFileNameList(String[], int)
	makeInputFileNameList(String[], int)
   parseEppCommand(EppInputStream, Vector)
	parseEppCommand(EppInputStream, Vector)
   parseOption(String[], int)
	parseOption(String[], int)
   printAllOptions()
	printAllOptions()
   printUsage()
	printUsage()
   processFiles(String[], int)
	processFiles(String[], int)
   processFilesAndCatchEppUserError(String[], int)
	processFilesAndCatchEppUserError(String[], int)
   processPhase1(FileInfo)
	processPhase1(FileInfo)
   processPhase2(FileInfo)
	processPhase2(FileInfo)
   separateEpp(String[])
	separateEpp(String[])
   skipComment(EppInputStream)
	skipComment(EppInputStream)
   skipSpace(EppInputStream)
	skipSpace(EppInputStream)
   
 Epp
Epp
public Epp()
 
 main
main
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);
 eppMain
eppMain
public void eppMain(String argv[])
main and is the actual main routine.
 parseOption
parseOption
 public int parseOption(String argv[],
                        int argp)
 printUsage
printUsage
public void printUsage()
 printAllOptions
printAllOptions
public void printAllOptions()
 importantOptions
importantOptions
public String[] importantOptions()
 allOptions
allOptions
public String[] allOptions()
 checkEppoutDirectory
checkEppoutDirectory
public void checkEppoutDirectory()
 processFilesAndCatchEppUserError
processFilesAndCatchEppUserError
 public void processFilesAndCatchEppUserError(String argv[],
                                              int argp)
 processFiles
processFiles
 public void processFiles(String argv[],
                          int argp)
 makeInputFileNameList
makeInputFileNameList
 public String[] makeInputFileNameList(String argv[],
                                       int argp)
 collectInputFileNames
collectInputFileNames
 public void collectInputFileNames(String inputFileName,
                                   Vector names)
 globalEpp
globalEpp
public void globalEpp(String inputFileNames[])
 makeEppGlobalProcessor
makeEppGlobalProcessor
public FileInfo makeEppGlobalProcessor()
 separateEpp
separateEpp
public void separateEpp(String inputFileNames[])
 makeEppPreProcessor
makeEppPreProcessor
 public FileInfo makeEppPreProcessor(String inputFileName,
                                     String outputFileName)
 processPhase1
processPhase1
public void processPhase1(FileInfo fileInfo)
 processPhase2
processPhase2
public void processPhase2(FileInfo fileInfo)
 makeEppObject
makeEppObject
 public FileInfo makeEppObject(String inputFileName,
                               String outputFileName,
                               Object eppCommands[][])
 makeFileInfo
makeFileInfo
 public FileInfo makeFileInfo(String inputFileName,
                              Obj preprocessor,
                              Hashtable classTable,
                              DVenv env)
 loadDefaultConfiguration
loadDefaultConfiguration
public void loadDefaultConfiguration()
 collectEppCommands
collectEppCommands
public Object[][] collectEppCommands(String inputFileName)
 parseEppCommand
parseEppCommand
 public void parseEppCommand(EppInputStream in,
                             Vector commands)
 eppCommandUsage
eppCommandUsage
public Error eppCommandUsage(EppInputStream in)
 skipSpace
skipSpace
public void skipSpace(EppInputStream in)
 skipComment
skipComment
public void skipComment(EppInputStream in)
 eppMainRoutineError
eppMainRoutineError
public Error eppMainRoutineError(String str)
 getClassNameFromFileName
getClassNameFromFileName
public static String getClassNameFromFileName(String inputFileName)
 isGeneratedFile
isGeneratedFile
public static boolean isGeneratedFile(String path)
 error
error
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.
 fatal
fatal
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