public class Trees extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getPS(Tree t,
List<String> ruleNames) |
static String |
getPS(Tree t,
List<String> ruleNames,
String fontName,
int fontSize) |
static Future<JFrame> |
inspect(Tree t,
List<String> ruleNames)
Call this method to view a parse tree in a dialog box visually.
|
static Future<JFrame> |
inspect(Tree t,
Parser parser)
Call this method to view a parse tree in a dialog box visually.
|
static void |
save(Tree t,
List<String> ruleNames,
String fileName)
Save this tree in a postscript file
|
static void |
save(Tree t,
List<String> ruleNames,
String fileName,
String fontName,
int fontSize)
Save this tree in a postscript file using a particular font name and size
|
static void |
save(Tree t,
Parser parser,
String fileName)
Save this tree in a postscript file
|
static void |
save(Tree t,
Parser parser,
String fileName,
String fontName,
int fontSize)
Save this tree in a postscript file using a particular font name and size
|
static String |
toStringTree(Tree t,
TreeTextProvider nodeTextProvider)
Print out a whole tree in LISP form.
|
static void |
writePS(Tree t,
List<String> ruleNames,
String fileName) |
static void |
writePS(Tree t,
List<String> ruleNames,
String fileName,
String fontName,
int fontSize) |
public static Future<JFrame> inspect(Tree t, List<String> ruleNames)
public static Future<JFrame> inspect(Tree t, Parser parser)
public static void save(Tree t, Parser parser, String fileName) throws IOException, PrintException
IOException
PrintException
public static void save(Tree t, Parser parser, String fileName, String fontName, int fontSize) throws IOException
IOException
public static void save(Tree t, List<String> ruleNames, String fileName) throws IOException, PrintException
IOException
PrintException
public static void save(Tree t, List<String> ruleNames, String fileName, String fontName, int fontSize) throws IOException
IOException
public static void writePS(Tree t, List<String> ruleNames, String fileName, String fontName, int fontSize) throws IOException
IOException
public static void writePS(Tree t, List<String> ruleNames, String fileName) throws IOException
IOException
public static String toStringTree(Tree t, TreeTextProvider nodeTextProvider)
Copyright © 1992–2020 ANTLR. All rights reserved.