Package org.antlr.v4.gui
Class Trees
java.lang.Object
org.antlr.v4.gui.Trees
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
Call this method to view a parse tree in a dialog box visually.Call this method to view a parse tree in a dialog box visually.static void
Save this tree in a postscript filestatic void
Save this tree in a postscript file using a particular font name and sizestatic void
Save this tree in a postscript filestatic void
Save this tree in a postscript file using a particular font name and sizestatic String
toStringTree
(Tree t, TreeTextProvider nodeTextProvider) Print out a whole tree in LISP form.static void
static void
-
Method Details
-
inspect
Call this method to view a parse tree in a dialog box visually. -
inspect
Call this method to view a parse tree in a dialog box visually. -
save
Save this tree in a postscript file- Throws:
IOException
PrintException
-
save
public static void save(Tree t, Parser parser, String fileName, String fontName, int fontSize) throws IOException Save this tree in a postscript file using a particular font name and size- Throws:
IOException
-
save
public static void save(Tree t, List<String> ruleNames, String fileName) throws IOException, PrintException Save this tree in a postscript file- Throws:
IOException
PrintException
-
save
public static void save(Tree t, List<String> ruleNames, String fileName, String fontName, int fontSize) throws IOException Save this tree in a postscript file using a particular font name and size- Throws:
IOException
-
getPS
-
getPS
-
writePS
public static void writePS(Tree t, List<String> ruleNames, String fileName, String fontName, int fontSize) throws IOException - Throws:
IOException
-
writePS
- Throws:
IOException
-
toStringTree
Print out a whole tree in LISP form. Arg nodeTextProvider is used on the node payloads to get the text for the nodes.- Since:
- 4.5.1
-