KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > ActionTransInfo


1 package persistence.antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 /**
10  * This class contains information about how an action
11  * was translated (using the AST conversion rules).
12  */

13 public class ActionTransInfo {
14     public boolean assignToRoot = false; // somebody did a "#rule = "
15
public String JavaDoc refRuleRoot = null; // somebody referenced #rule; string is translated var
16
public String JavaDoc followSetName = null; // somebody referenced $FOLLOW; string is the name of the lookahead set
17

18     public String JavaDoc toString() {
19         return "assignToRoot:" + assignToRoot + ", refRuleRoot:"
20                 + refRuleRoot + ", FOLLOW Set:" + followSetName;
21     }
22 }
23
Popular Tags