Class XmlTreeGenerator
java.lang.Object
com._1c.g5.v8.dt.xml.gumtree.tree.generator.XmlTreeGenerator
A helper to generate the AST for the Gumtree comparison algorithm in the convenient format for xml files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom._1c.g5.gumtree.core.tree.INode
generateGumTreeAST
(String content, org.eclipse.jface.text.IDocument doc) Generates the GumTree AST from the xml file.
-
Constructor Details
-
XmlTreeGenerator
public XmlTreeGenerator()Creates a newXmlTreeGenerator
.
-
-
Method Details
-
generateGumTreeAST
public com._1c.g5.gumtree.core.tree.INode generateGumTreeAST(String content, org.eclipse.jface.text.IDocument doc) throws com._1c.g5.gumtree.core.tree.TreeGeneratorException Generates the GumTree AST from the xml file.- Parameters:
content
- the content of the xml file, can not benull
doc
- the given document, can not benull
- Returns:
- the root of the built tree, can not be
null
- Throws:
com._1c.g5.gumtree.core.tree.TreeGeneratorException
- if there are syntax errors in the xml file
-