code.loader.parser
Interface ModuleParser

All Known Implementing Classes:
TxtParser, XMLParser

public interface ModuleParser

The super class of all the parsers of compiled module.

Class Responsibilities :

  1. provide the common interface for all the module parsers: TXT, XML, BINARY parsers
Class Collaborators :
  1. None

Since:
Jan 09, 2003
Author:
jimeng

Method Summary
 java.util.Vector getAllSymbols()
          Gets the allSymbols attribute of the ModuleParser object
 java.util.Vector getImported()
          Gets the imported attribute of the ModuleParser object
 int getTimestamp()
          Gets the module's timestamp
 void initParser(java.io.BufferedReader in)
          Initializes the parser for incremental parsing of the file.
 boolean isCompiled()
          Gets the compiled attribute of the ModuleParser object
 java.lang.String moduleName()
          Gets the moduleNmae attribute of the ModuleParser object.
 void parse(java.io.BufferedReader in)
          Parse the source from the BufferedReader
 

Method Detail

parse

void parse(java.io.BufferedReader in)
           throws ParseException
Parse the source from the BufferedReader

Parameters:
in - input to the parser
Throws:
ParseException

moduleName

java.lang.String moduleName()
Gets the moduleNmae attribute of the ModuleParser object.

Returns:
The moduleName

getImported

java.util.Vector getImported()
Gets the imported attribute of the ModuleParser object

Returns:
The imported value

getAllSymbols

java.util.Vector getAllSymbols()
Gets the allSymbols attribute of the ModuleParser object

Returns:
The allSymbols value

isCompiled

boolean isCompiled()
Gets the compiled attribute of the ModuleParser object

Returns:
The compiled value

getTimestamp

int getTimestamp()
Gets the module's timestamp

Returns:
The moduleName

initParser

void initParser(java.io.BufferedReader in)
                throws ParseException
Initializes the parser for incremental parsing of the file.

Parameters:
in - Reader that is prepared to read in module file's contents.
Throws:
ParseException - Blah