de.java2html.javasource
Class JavaSourceParser
java.lang.Object
de.java2html.javasource.JavaSourceParser
public class JavaSourceParser
- extends java.lang.Object
Parses raw text to a JavaSource
object. The
parser can not only handle grammatically correct Java source files but also
code snippets.
(Parsing is done in multiple steps starting with raw text where every
character is classified as UNDEFINED and trying to find out more about it
step by step. There are some state machines used for parsing. They are hand
coded and quite complicated. The parser seems to be very stable, as I have
not been reported a single bug now for about two years.)
For questions, suggestions, bug-reports, enhancement-requests etc. I may be
contacted at: markus@jave.de
The Java2html home page is located at:
http://www.java2html.de
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaSourceParser
public JavaSourceParser()
JavaSourceParser
public JavaSourceParser(JavaSourceConversionOptions options)
parse
public JavaSource parse(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public JavaSource parse(java.lang.String rawText)
parse
public JavaSource parse(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public JavaSource parse(java.io.InputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public JavaSource parse(java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException