|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.parser.SiteCatalogTextParser
public class SiteCatalogTextParser
Parses the input stream and generates site configuration map as output.
org.griphyn.cPlanner.classes.SiteCatalogTextScanner,
org.griphyn.cPlanner.classes.Token| Field Summary | |
|---|---|
private LogManager |
m_logger
The handle to the logger used to log messages. |
private Token |
m_lookAhead
Stores the look-ahead symbol. |
private SiteCatalogTextScanner |
m_scanner
The access to the lexical scanner is stored here. |
| Constructor Summary | |
|---|---|
SiteCatalogTextParser(Reader r)
Initializes the parser with an input stream to read from. |
|
| Method Summary | |
|---|---|
private String |
getSiteHandle()
Returns the site handle for a site, and moves the scanner to hold the next SiteCatalogReservedWord. |
String |
niceString(String input)
Remove potential leading and trainling quotes from a string. |
PoolConfig |
parse()
Parses the complete input stream, into the PoolConfig data object that holds the contents of all the sites referred to in the stream. |
private void |
populate(SiteInfo site)
Populates all the attributes except the handle, associated with the site in the SiteInfo object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SiteCatalogTextScanner m_scanner
private Token m_lookAhead
private LogManager m_logger
| Constructor Detail |
|---|
public SiteCatalogTextParser(Reader r)
throws IOException,
ScannerException
r - is the stream opened for reading.
IOException
ScannerException| Method Detail |
|---|
public PoolConfig parse()
throws IOException,
ScannerException,
Exception
IOException
ScannerException
Exceptionorg.griphyn.cPlanner.classes.PoolConfigpublic String niceString(String input)
input - is a string which may have leading and trailing quotes
private void populate(SiteInfo site)
throws IOException,
ScannerException,
Exception
SiteInfo object.
site - the SiteInfo object that is to be populated.
- Throws:
even - more mystery
IOException
ScannerException
Exception
private String getSiteHandle()
throws IOException,
ScannerException
SiteCatalogReservedWord.
plenty
IOException
ScannerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||