Class XmlTreeGenerator
- java.lang.Object
-
- com._1c.g5.v8.dt.xml.gumtree.tree.generator.XmlTreeGenerator
-
public class XmlTreeGenerator extends Object
A helper to generate the AST for the Gumtree comparison algorithm in the convenient format for xml files.
-
-
Constructor Summary
Constructors Constructor Description XmlTreeGenerator()
Creates a newXmlTreeGenerator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com._1c.g5.gumtree.core.tree.INode
generateGumTreeAST(String content, org.eclipse.jface.text.IDocument doc)
Generates the GumTree AST from the xml file.
-
-
-
Constructor Detail
-
XmlTreeGenerator
public XmlTreeGenerator()
Creates a newXmlTreeGenerator
.
-
-
Method Detail
-
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
-
-