| java.lang.Object org.mozilla.javascript.Parser
Parser | public class Parser (Code) | | This class implements the JavaScript parser.
It is based on the C source files jsparse.c and jsparse.h
in the jsref package.
See Also: TokenStream author: Mike McCabe author: Brendan Eich |
Method Summary | |
void | addError(String messageId) | void | addError(String messageId, String messageArg, Object params) | void | addStrictWarning(String messageId, String messageArg, Object params) | void | addWarning(String messageId, String messageArg, Object params) | protected Decompiler | createDecompiler(CompilerEnvirons compilerEnv) | public boolean | eof() | public String | getEncodedSource() | int | getEndOffset() | int | getStartOffset() | public TokenStream | getTokenStream() | boolean | insideFunction() | public ScriptOrFnNode | parse(String sourceString, String sourceURI, int lineno) | public ScriptOrFnNode | parse(Reader sourceReader, String sourceURI, int lineno) | public ScriptOrFnNode | parseJson(String sourceString, String sourceURI, int lineno) | RuntimeException | reportError(String messageId) | public void | setJsonMode(boolean jsonMode) | Node | setSourceOffsets(Node n, int startOffset) | public void | setTokenStream(TokenStream ts) |
CLEAR_TI_MASKTI_AFTER_EOLTI_CHECK_LABEL | final public static int CLEAR_TI_MASKTI_AFTER_EOLTI_CHECK_LABEL(Code) | | |
calledByCompileFunction | boolean calledByCompileFunction(Code) | | |
getEndOffset | int getEndOffset()(Code) | | |
getStartOffset | int getStartOffset()(Code) | | |
insideFunction | boolean insideFunction()(Code) | | |
setJsonMode | public void setJsonMode(boolean jsonMode)(Code) | | |
|
|