Class IRFactory

java.lang.Object
org.mozilla.javascript.Parser
org.mozilla.javascript.IRFactory

public final class IRFactory extends Parser
This class rewrites the parse tree into an IR suitable for codegen.
See Also:
  • Constructor Details

  • Method Details

    • transformTree

      public ScriptNode transformTree(AstRoot root)
      Transforms the tree into a lower-level IR suitable for codegen. Optionally generates the encoded source.
    • transform

      public Node transform(AstNode node)