|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.parser4j.parsetreeinspector.service.ParseTreeToXML
public final class ParseTreeToXML
output parse tree ( through its root parse node ) to xml in XStream forms
Method Summary | |
---|---|
static ParseTreeToXML |
getInstance()
|
void |
toXml(java.io.File outputFile,
ParseNodeComponent parseNodeComponent,
java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap)
write parse tree in xml form |
void |
toXml(java.lang.String filePrefix,
HasAmbiguityParserException exception,
java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap)
write parse tree with ambiguity in xml form |
void |
toXml(java.lang.String filePrefix,
ParseStack[] parseStacks,
java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ParseTreeToXML getInstance()
public void toXml(java.lang.String filePrefix, HasAmbiguityParserException exception, java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap) throws ParserException
filePrefix
- the file prefix for all outputexception
- in witch are stored parse tree with ambiguitynonTerminalByIdentifierMap
- map between non terminal name and its identifier
ParserException
public void toXml(java.lang.String filePrefix, ParseStack[] parseStacks, java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap) throws ParserException
ParserException
public void toXml(java.io.File outputFile, ParseNodeComponent parseNodeComponent, java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap) throws ParserException
outputFile
- the file to store the parse treeparseNodeComponent
- the tree rootnonTerminalByIdentifierMap
- map between non terminal name and its identifier
ParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |