|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.provider.xml.fast.Parser
class Parser
Light-weight XML parser for treebolic
Nested Class Summary | |
---|---|
private static class |
Parser.Scope
Scope types |
Field Summary | |
---|---|
private int |
lookahead
Character lookahead |
private java.util.List<IEdge> |
theEdges
Edge list |
private java.util.List<MenuItem> |
theMenu
Menu |
private MenuItem |
theMenuItem
Menu item |
private java.util.Hashtable<java.lang.String,MutableNode> |
theNodesById
Id to node map |
private Provider |
theProvider
Provider |
private java.io.BufferedReader |
theReader
Reader |
private MutableNode |
theRoot
Root node |
private Settings |
theSettings
Settings |
private java.net.URL |
theURL
Source URL |
Constructor Summary | |
---|---|
Parser(java.net.URL thisURL,
Provider thisProvider)
Constructor |
Method Summary | |
---|---|
private java.lang.String |
getNextTag()
Get next tag string |
private java.lang.String |
getText()
Get tag text |
private boolean |
hasMoreTags()
Whether more tags are available |
boolean |
isValid()
Whether reader is valid |
private Tree |
parse(boolean doSettings)
Parse. |
private void |
parseEdgesTag(Tag thisTag)
Parse |
private MutableEdge |
parseEdgeTag(Tag thisTag)
Parse |
Model |
parseModel()
Parse model |
private void |
parseNodesTag(Tag thisTag)
Parse |
Tree |
parseTree()
Parse tree |
private void |
parseTreebolicTag(Tag thisTag)
Parse |
private void |
parseTreeTag(Tag thisTag)
Parse |
private int |
read()
Read character |
private void |
unread(int c)
Unread (=push back) character |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.net.URL theURL
private Provider theProvider
private MutableNode theRoot
private java.util.List<IEdge> theEdges
private java.util.Hashtable<java.lang.String,MutableNode> theNodesById
private Settings theSettings
private java.util.List<MenuItem> theMenu
private MenuItem theMenuItem
private java.io.BufferedReader theReader
private int lookahead
Constructor Detail |
---|
public Parser(java.net.URL thisURL, Provider thisProvider)
thisURL
- source urlthisProvider
- providerMethod Detail |
---|
public boolean isValid()
private int read()
private void unread(int c)
c
- characterprivate boolean hasMoreTags()
private java.lang.String getNextTag()
private java.lang.String getText()
private void parseTreebolicTag(Tag thisTag)
thisTag
- tag stringprivate void parseTreeTag(Tag thisTag)
thisTag
- tag stringprivate void parseNodesTag(Tag thisTag)
thisTag
- tag stringprivate void parseEdgesTag(Tag thisTag)
thisTag
- tag stringprivate MutableEdge parseEdgeTag(Tag thisTag)
thisTag
- tag string
public Model parseModel()
public Tree parseTree()
private Tree parse(boolean doSettings)
doSettings
- whether to consider or discard settings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |