Class TreeWizard.TreePattern

All Implemented Interfaces:
Tree
Direct Known Subclasses:
TreeWizard.WildcardTreePattern
Enclosing class:
TreeWizard

public static class TreeWizard.TreePattern extends CommonTree
When using %label:TOKENNAME in a tree for parse(), we must track the label.
  • Field Details

    • label

      public String label
    • hasTextArg

      public boolean hasTextArg
  • Constructor Details

    • TreePattern

      public TreePattern(Token payload)
  • Method Details

    • toString

      public String toString()
      Description copied from class: BaseTree
      Override to say how a node (not a tree) should look as text
      Specified by:
      toString in interface Tree
      Overrides:
      toString in class CommonTree