类 ActionLabel

  • 所有已实现的接口:
    java.lang.Cloneable, java.lang.Comparable<Label>

    public class ActionLabel
    extends Label
    • 构造器详细资料

      • ActionLabel

        public ActionLabel​(GrammarAST actionAST)
    • 方法详细资料

      • isEpsilon

        public boolean isEpsilon()
        覆盖:
        isEpsilon 在类中 Label
      • isAction

        public boolean isAction()
        覆盖:
        isAction 在类中 Label
      • 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.
        覆盖:
        toString 在类中 Label