Class Define

All Implemented Interfaces:
Iterable<Leaf>, ParsedPattern
Direct Known Subclasses:
Grammar

public class Define extends WriterNode
A named pattern.
Author:
Kohsuke Kawaguchi
  • Field Details

    • scope

      public final Grammar scope
    • name

      public final String name
  • Constructor Details

  • Method Details

    • isInline

      public boolean isInline()
      Returns true if this define only contains one child (and thus considered inlinable.) A pattern definition is also inlineable if it's the start of the grammar (because "start" isn't a meaningful name)
    • toString

      public String toString()
      Overrides:
      toString in class Object