|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcode.loader.parser.XMLParser
public class XMLParser
This is an old XML parser. It is now (7/28/04) broken and obsolete. Change constructor here to raise an exception if an attempt is made to load XML file.
| Field Summary | |
|---|---|
private java.util.Vector |
allSymbols
|
private org.w3c.dom.Document |
document
|
private java.util.Vector |
imports
|
private java.io.BufferedReader |
in
|
private java.util.Date |
modifiedDate
|
private java.lang.String |
moduleName
|
private int |
timestamp
|
| Constructor Summary | |
|---|---|
XMLParser()
|
|
| 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 |
java.lang.String |
getSource()
|
int |
getTimestamp()
Gets the module's timestamp |
void |
initParser(java.io.BufferedReader in)
Stub that should be filled in at later date. |
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 |
private void |
parseConstructors()
|
private void |
parseDocument()
|
private void |
parseImports()
|
private void |
parseLastModDate()
|
private void |
parseModuleName()
|
private TypeExpression |
parseNonFunctionTypeExpression(org.w3c.dom.Element nonFunctionTypeExpression)
|
private void |
parseOperations()
|
private TypeExpression |
parseSignature(org.w3c.dom.Element signatureElement)
Description of the Method |
private void |
parseSymbols()
|
private TypeExpression |
parseTypeExpression(org.w3c.dom.Element typeExpressionElement)
|
private void |
parseTypes()
|
private void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.w3c.dom.Document document
private java.lang.String moduleName
private java.util.Vector imports
private java.util.Vector allSymbols
private java.util.Date modifiedDate
private int timestamp
private java.io.BufferedReader in
| Constructor Detail |
|---|
public XMLParser()
| Method Detail |
|---|
public void parse(java.io.BufferedReader in)
ModuleParser
parse in interface ModuleParserin - input to the parserprivate void reset()
public java.util.Vector getImported()
ModuleParser
getImported in interface ModuleParserpublic java.util.Vector getAllSymbols()
ModuleParser
getAllSymbols in interface ModuleParserpublic int getTimestamp()
ModuleParser
getTimestamp in interface ModuleParserpublic boolean isCompiled()
ModuleParser
isCompiled in interface ModuleParserpublic java.lang.String getSource()
public java.lang.String moduleName()
ModuleParser
moduleName in interface ModuleParserprivate void parseDocument()
private void parseModuleName()
throws java.lang.Exception
java.lang.Exceptionprivate void parseLastModDate()
private void parseImports()
private void parseSymbols()
throws java.lang.Exception
java.lang.Exception
private void parseTypes()
throws java.lang.Exception
java.lang.Exception
private void parseConstructors()
throws java.lang.Exception
java.lang.Exception
private void parseOperations()
throws java.lang.Exception
java.lang.Exception
private TypeExpression parseSignature(org.w3c.dom.Element signatureElement)
throws java.lang.Exception
signatureElement - Description of the Parameter
java.lang.Exception - Description of the Exception
private TypeExpression parseTypeExpression(org.w3c.dom.Element typeExpressionElement)
throws java.lang.Exception
java.lang.Exception
private TypeExpression parseNonFunctionTypeExpression(org.w3c.dom.Element nonFunctionTypeExpression)
throws java.lang.Exception
java.lang.Exceptionpublic void initParser(java.io.BufferedReader in)
initParser in interface ModuleParserin - Reader that is prepared to read in module file's contents.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||