Class TreeUtils


  • public class TreeUtils
    extends Object
    • Field Detail

      • Eol

        public static final String Eol
        Platform dependent end-of-line marker
    • Method Detail

      • toPrettyTree

        public static String toPrettyTree​(org.antlr.v4.runtime.tree.Tree t,
                                          List<String> ruleNames)
        Pretty print out a whole tree.
        Parameters:
        t - tree to be formatted
        ruleNames - names of the rules
        Returns:
        prettified string of the tree