Internal AST visitor for serializing an AST in a quick and dirty fashion. For various reasons the resulting string is not necessarily legal Java code; and even if it is legal Java code, it is not necessarily the string that corresponds to the given AST. Although useless for most purposes, it's fine for generating debug print strings.
Example usage: NaiveASTFlattener p = new NaiveASTFlattener(); node.accept(p); String result = p.getResult();
Call the reset
method to clear the previous result before reusing an existing instance.
@since 2.0