Class JSParser

java.lang.Object
org.mozilla.javascript.Parser
org.teavm.backend.javascript.rendering.JSParser

public class JSParser extends org.mozilla.javascript.Parser
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.mozilla.javascript.Parser

    org.mozilla.javascript.Parser.PerFunctionVariables
  • Field Summary

    Fields inherited from class org.mozilla.javascript.Parser

    ARGC_LIMIT, inUseStrictDirective, nestingOfFunction
  • Constructor Summary

    Constructors
    Constructor
    Description
    JSParser(Object compilerEnv)
     
    JSParser(Object compilerEnv, Object errorReporter)
     
    JSParser(org.mozilla.javascript.CompilerEnvirons compilerEnv)
     
    JSParser(org.mozilla.javascript.CompilerEnvirons compilerEnv, org.mozilla.javascript.ErrorReporter errorReporter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    parseAsObject(Reader sourceReader, String sourceURI, int lineno)
     

    Methods inherited from class org.mozilla.javascript.Parser

    checkActivationName, checkMutableReference, createName, createName, createNumber, createScopeNode, eof, inUseStrictDirective, parse, parse, removeParens, setDefaultUseStrictDirective, setIsGenerator, setRequiresActivation, simpleAssignment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JSParser

      public JSParser(Object compilerEnv, Object errorReporter)
    • JSParser

      public JSParser(org.mozilla.javascript.CompilerEnvirons compilerEnv, org.mozilla.javascript.ErrorReporter errorReporter)
    • JSParser

      public JSParser(Object compilerEnv)
    • JSParser

      public JSParser(org.mozilla.javascript.CompilerEnvirons compilerEnv)
  • Method Details

    • enterFunction

      public void enterFunction()
    • exitFunction

      public void exitFunction()
    • parseAsObject

      public Object parseAsObject(Reader sourceReader, String sourceURI, int lineno) throws IOException
      Throws:
      IOException