org.mozilla.javascript
Class Parser
java.lang.Object
org.mozilla.javascript.Parser
public class Parser
- extends Object
This class implements the JavaScript parser.
It is based on the C source files jsparse.c and jsparse.h
in the jsref package.
- Author:
- Mike McCabe, Brendan Eich
- See Also:
TokenStream
|
Constructor Summary |
Parser(org.mozilla.javascript.CompilerEnvirons compilerEnv,
org.mozilla.javascript.ErrorReporter errorReporter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser(org.mozilla.javascript.CompilerEnvirons compilerEnv,
org.mozilla.javascript.ErrorReporter errorReporter)
createDecompiler
protected Decompiler createDecompiler(org.mozilla.javascript.CompilerEnvirons compilerEnv)
getEncodedSource
public String getEncodedSource()
eof
public boolean eof()
parse
public org.mozilla.javascript.ScriptOrFnNode parse(String sourceString,
String sourceURI,
int lineno)
parse
public org.mozilla.javascript.ScriptOrFnNode parse(Reader sourceReader,
String sourceURI,
int lineno)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.