Class Reader

java.lang.Object
com.google.javascript.jscomp.jsonml.Reader

public class Reader extends Object
Traverse JsonML source tree and generates AST.
  • Constructor Details

    • Reader

      public Reader()
  • Method Details

    • setRootElement

      public void setRootElement(JsonML rootElement)
    • parse

      public Node parse(AbstractCompiler compiler) throws com.google.javascript.jscomp.jsonml.JsonMLException
      Generates AST for a specified JsonML source file.
      Returns:
      root node of the generated AST
      Throws:
      com.google.javascript.jscomp.jsonml.JsonMLException - if an error occurs