From 20aa8cf4ec119ce05992a2f50554895de3db790b Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Mon, 27 Aug 2012 12:05:05 -0700 Subject: [PATCH] update comments --- runtime/Java/src/org/antlr/v4/runtime/RuleContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java b/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java index ddc9646c5..2455b306a 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java +++ b/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java @@ -263,11 +263,13 @@ public class RuleContext implements RuleNode { @Override public T accept(ParseTreeVisitor visitor) { return visitor.visitChildren(this); } + /** Call this method to view a parse tree in a dialog box visually. */ public void inspect(Parser parser) { TreeViewer viewer = new TreeViewer(parser, this); viewer.open(); } + /** Save this tree in a postscript file */ public void save(Parser parser, String fileName) throws IOException, PrintException { @@ -276,6 +278,7 @@ public class RuleContext implements RuleNode { Trees.writePS(this, parser, fileName); // parrt routine } + /** Save this tree in a postscript file using a particular font name and size */ public void save(Parser parser, String fileName, String fontName, int fontSize) throws IOException