|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.j2x.parser.JxParser
Parses source code and generates a fundamental XML document from it.
| Constructor Summary | |
JxParser(java.lang.String filename)
Creates a parser with setting the name of source code to be parsed. |
|
JxParser(java.lang.String filename,
byte[] contents)
Creates a parser with setting the name and contents of source code to be parsed. |
|
JxParser(java.lang.String filename,
java.lang.String contents,
java.lang.String charsetName)
Creates a parser with setting the name and the content of source code to be parsed. |
|
| Method Summary | |
void |
close()
Closes the parser. |
java.lang.String |
getCharsetName()
Returns the name of a generated XML document's charset. |
org.w3c.dom.Document |
getDocument()
Returns the DOM document object of a generated XML document. |
java.lang.String |
getMessage()
Returns a message reported by the compiler during the parsing. |
java.lang.String |
getText()
Returns the text of a generated XML document. |
boolean |
parse()
Parses input source code by using JavaCC's JavaParser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JxParser(java.lang.String filename,
java.lang.String contents,
java.lang.String charsetName)
throws java.io.IOException
filename - The name of an input source code.contents - The textual contents of an input source code.charsetName - The name of a content's charset.
java.io.IOException - if it fails to create a parser.
public JxParser(java.lang.String filename,
byte[] contents)
throws java.io.IOException
filename - The name of an input source code.contents - The byte contents of an input source code.
java.io.IOException - if it fails to create a parser.
public JxParser(java.lang.String filename)
throws java.io.IOException
filename - The name of an input source code.
java.io.IOException - if it fails to create a parser.| Method Detail |
public void close()
public org.w3c.dom.Document getDocument()
public java.lang.String getCharsetName()
public java.lang.String getText()
public boolean parse()
JavaParser.
true if the parsing succeeds, otherwise false.public java.lang.String getMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||