Package ch.usi.si.seart.treesitter
Class SyntaxTreePrinter
- java.lang.Object
-
- ch.usi.si.seart.treesitter.SyntaxTreePrinter
-
public class SyntaxTreePrinter extends Object
Utility used for pretty-printing entire syntax trees, as well as their subtrees.
-
-
Constructor Summary
Constructors Constructor Description SyntaxTreePrinter(Node node, Point offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringprintSubtree()
-
-
-
Method Detail
-
printSubtree
public String printSubtree()
- Returns:
- A string representation of the subtree. Consists only of named nodes.
- See Also:
- Syntax Tree Playground
-
-