Class MdoTreeGenerator
- java.lang.Object
-
- com._1c.g5.v8.dt.md.gumtree.tree.generator.MdoTreeGenerator
-
public class MdoTreeGenerator extends Object
A helper to generate an AST for the Gumtree comparison algorithm in the right format for mdo files.
-
-
Constructor Summary
Constructors Constructor Description MdoTreeGenerator()
Creates a newMdoTreeGenerator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com._1c.g5.gumtree.core.tree.INode
generateGumTreeAST(String content, Charset encoding)
Generates the GumTree AST from the mdo file.
-
-
-
Constructor Detail
-
MdoTreeGenerator
public MdoTreeGenerator()
Creates a newMdoTreeGenerator
.
-
-
Method Detail
-
generateGumTreeAST
public com._1c.g5.gumtree.core.tree.INode generateGumTreeAST(String content, Charset encoding) throws com._1c.g5.gumtree.core.tree.TreeGeneratorException
Generates the GumTree AST from the mdo file.- Parameters:
content
- the content of the mdo file, not nullencoding
- the encoding of the mdo file, not null- Returns:
- the root of the built tree
- Throws:
com._1c.g5.gumtree.core.tree.TreeGeneratorException
- if there are syntax errors in the mdo file
-
-