类 ActionLabel
- java.lang.Object
-
- org.antlr.analysis.Label
-
- org.antlr.analysis.ActionLabel
-
-
字段概要
字段 修饰符和类型 字段 说明 GrammarAST
actionAST
-
从类继承的字段 org.antlr.analysis.Label
ACTION, DOWN, EOF, EOR_TOKEN_TYPE, EOT, EPSILON, EPSILON_STR, INVALID, label, labelSet, MAX_CHAR_VALUE, MIN_ATOM_VALUE, MIN_CHAR_VALUE, MIN_TOKEN_TYPE, NUM_FAUX_LABELS, SEMPRED, SET, UP
-
-
构造器概要
构造器 构造器 说明 ActionLabel(GrammarAST actionAST)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
isAction()
boolean
isEpsilon()
java.lang.String
toString()
Predicates are lists of AST nodes from the NFA created from the grammar, but the same predicate could be cut/paste into multiple places in the grammar.java.lang.String
toString(Grammar g)
-
-
-
字段详细资料
-
actionAST
public GrammarAST actionAST
-
-
构造器详细资料
-
ActionLabel
public ActionLabel(GrammarAST actionAST)
-
-
方法详细资料
-
toString
public java.lang.String toString()
从类复制的说明:Label
Predicates are lists of AST nodes from the NFA created from the grammar, but the same predicate could be cut/paste into multiple places in the grammar. I must compare the text of all the predicates to truly answer whether {p1,p2} .equals {p1,p2}. Unfortunately, I cannot rely on the AST.equals() to work properly so I must do a brute force O(n^2) nested traversal of the Set doing a String compare. At this point, Labels are not compared for equals when they are predicates, but here's the code for future use.
-
-