org.mozilla.javascript
Class Parser
java.lang.Object
org.mozilla.javascript.Parser
public class Parser
extends java.lang.Object
This class implements the JavaScript parser.
It is based on the C source files jsparse.c and jsparse.h
in the jsref package.
getCurrentLineNumber
public int getCurrentLineNumber()
getEncodedSource
public String getEncodedSource()
parse
public ScriptOrFnNode parse(Reader sourceReader,
String sourceURI,
int lineno)
throws IOException
parse
public ScriptOrFnNode parse(String sourceString,
String sourceURI,
int lineno)