Tabnine Logo
Trees
Code IndexAdd Tabnine to your IDE (free)

How to use
Trees
in
org.antlr.v4.gui

Best Java code snippets using org.antlr.v4.gui.Trees (Showing top 20 results out of 315)

origin: org.antlr/antlr4

public static String getPS(Tree t, List<String> ruleNames) {
  return getPS(t, ruleNames, "Helvetica", 11);
}
origin: uk.co.nichesolutions/antlr4

/** Save this tree in a postscript file using a particular font name and size */
public static void save(Tree t,
            List<String> ruleNames, String fileName,
            String fontName, int fontSize)
throws IOException
{
  writePS(t, ruleNames, fileName, fontName, fontSize);
}
origin: uk.co.nichesolutions/antlr4

Trees.inspect(tree, parser);
Trees.save(tree, parser, psFile); // Generate postscript
origin: org.antlr/antlr4

/** Save this tree in a postscript file */
public static void save(Tree t, Parser parser, String fileName)
  throws IOException, PrintException
{
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  save(t, ruleNames, fileName);
}
origin: uk.co.nichesolutions/antlr4

/** Call this method to view a parse tree in a dialog box visually. */
public static Future<JDialog> inspect(Tree t, Parser parser) {
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  return inspect(t, ruleNames);
}
origin: org.antlr/antlr4

/** 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
 */
public static String toStringTree(Tree t, TreeTextProvider nodeTextProvider) {
  if ( t==null ) return "null";
  String s = Utils.escapeWhitespace(nodeTextProvider.getText(t), false);
  if ( t.getChildCount()==0 ) return s;
  StringBuilder buf = new StringBuilder();
  buf.append("(");
  s = Utils.escapeWhitespace(nodeTextProvider.getText(t), false);
  buf.append(s);
  buf.append(' ');
  for (int i = 0; i<t.getChildCount(); i++) {
    if ( i>0 ) buf.append(' ');
    buf.append(toStringTree(t.getChild(i), nodeTextProvider));
  }
  buf.append(")");
  return buf.toString();
}
origin: org.antlr/antlr4

Trees.inspect(tree, parser);
Trees.save(tree, parser, psFile); // Generate postscript
origin: org.antlr/antlr4

/** Save this tree in a postscript file using a particular font name and size */
public static void save(Tree t, Parser parser, String fileName,
         String fontName, int fontSize)
  throws IOException
{
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  save(t, ruleNames, fileName, fontName, fontSize);
}
origin: io.virtdata/virtdata-lib-realer

/** Call this method to view a parse tree in a dialog box visually. */
public static Future<JFrame> inspect(Tree t, Parser parser) {
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  return inspect(t, ruleNames);
}
origin: uk.co.nichesolutions/antlr4

/** 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
 */
public static String toStringTree(Tree t, TreeTextProvider nodeTextProvider) {
  if ( t==null ) return "null";
  String s = Utils.escapeWhitespace(nodeTextProvider.getText(t), false);
  if ( t.getChildCount()==0 ) return s;
  StringBuilder buf = new StringBuilder();
  buf.append("(");
  s = Utils.escapeWhitespace(nodeTextProvider.getText(t), false);
  buf.append(s);
  buf.append(' ');
  for (int i = 0; i<t.getChildCount(); i++) {
    if ( i>0 ) buf.append(' ');
    buf.append(toStringTree(t.getChild(i), nodeTextProvider));
  }
  buf.append(")");
  return buf.toString();
}
origin: io.virtdata/virtdata-lib-realer

Trees.inspect(tree, parser);
Trees.save(tree, parser, psFile); // Generate postscript
origin: uk.co.nichesolutions/antlr4

/** Save this tree in a postscript file */
public static void save(Tree t, Parser parser, String fileName)
  throws IOException, PrintException
{
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  save(t, ruleNames, fileName);
}
origin: org.antlr/antlr4

/** Save this tree in a postscript file using a particular font name and size */
public static void save(Tree t,
            List<String> ruleNames, String fileName,
            String fontName, int fontSize)
throws IOException
{
  writePS(t, ruleNames, fileName, fontName, fontSize);
}
origin: io.virtdata/virtdata-lib-realer

public static String getPS(Tree t, List<String> ruleNames) {
  return getPS(t, ruleNames, "Helvetica", 11);
}
origin: org.antlr/antlr4

/** Call this method to view a parse tree in a dialog box visually. */
public static Future<JFrame> inspect(Tree t, Parser parser) {
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  return inspect(t, ruleNames);
}
origin: io.virtdata/virtdata-lib-realer

/** 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
 */
public static String toStringTree(Tree t, TreeTextProvider nodeTextProvider) {
  if ( t==null ) return "null";
  String s = Utils.escapeWhitespace(nodeTextProvider.getText(t), false);
  if ( t.getChildCount()==0 ) return s;
  StringBuilder buf = new StringBuilder();
  buf.append("(");
  s = Utils.escapeWhitespace(nodeTextProvider.getText(t), false);
  buf.append(s);
  buf.append(' ');
  for (int i = 0; i<t.getChildCount(); i++) {
    if ( i>0 ) buf.append(' ');
    buf.append(toStringTree(t.getChild(i), nodeTextProvider));
  }
  buf.append(")");
  return buf.toString();
}
origin: com.tunnelvisionlabs/antlr4

Trees.inspect(tree, parser);
Trees.save(tree, parser, psFile); // Generate postscript
origin: uk.co.nichesolutions/antlr4

/** Save this tree in a postscript file using a particular font name and size */
public static void save(Tree t, Parser parser, String fileName,
         String fontName, int fontSize)
  throws IOException
{
  List<String> ruleNames = parser != null ? Arrays.asList(parser.getRuleNames()) : null;
  save(t, ruleNames, fileName, fontName, fontSize);
}
origin: org.antlr/antlr4

public static void writePS(Tree t, List<String> ruleNames, String fileName)
  throws IOException
{
  writePS(t, ruleNames, fileName, "Helvetica", 11);
}
origin: uk.co.nichesolutions/antlr4

public static String getPS(Tree t, List<String> ruleNames) {
  return getPS(t, ruleNames, "Helvetica", 11);
}
org.antlr.v4.guiTrees

Most used methods

  • getPS
  • inspect
    Call this method to view a parse tree in a dialog box visually.
  • save
    Save this tree in a postscript file using a particular font name and size
  • toStringTree
    Print out a whole tree in LISP form. Arg nodeTextProvider is used on the node payloads to get the te
  • writePS

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now