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<JDialog> |
inspect(Tree t,
List<String> ruleNames)
Call this method to view a parse tree in a dialog box visually.
|
static Future<JDialog> |
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<JDialog> inspect(@Nullable Tree t, @Nullable List<String> ruleNames)
public static Future<JDialog> inspect(@Nullable Tree t, @Nullable Parser parser)
public static void save(@Nullable Tree t, @Nullable Parser parser, String fileName) throws IOException, PrintException
IOExceptionPrintExceptionpublic static void save(Tree t, @Nullable Parser parser, String fileName, String fontName, int fontSize) throws IOException
IOExceptionpublic static void save(Tree t, @Nullable List<String> ruleNames, String fileName) throws IOException, PrintException
IOExceptionPrintExceptionpublic static void save(Tree t, @Nullable List<String> ruleNames, String fileName, String fontName, int fontSize) throws IOException
IOExceptionpublic static String getPS(Tree t, @Nullable List<String> ruleNames, String fontName, int fontSize)
public static void writePS(Tree t, @Nullable List<String> ruleNames, String fileName, String fontName, int fontSize) throws IOException
IOExceptionpublic static void writePS(Tree t, @Nullable List<String> ruleNames, String fileName) throws IOException
IOExceptionpublic static String toStringTree(@Nullable Tree t, @NotNull TreeTextProvider nodeTextProvider)
Copyright © 1992–2020 Tunnel Vision Laboratories, LLC. All rights reserved.