Class Reader
java.lang.Object
com.google.javascript.jscomp.jsonml.Reader
Traverse JsonML source tree and generates AST.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(AbstractCompiler compiler) Generates AST for a specified JsonML source file.void
setRootElement
(JsonML rootElement)
-
Constructor Details
-
Reader
public Reader()
-
-
Method Details
-
setRootElement
-
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
-