Class 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 Detail

    • 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 null
        encoding - 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