Class DChoicePattern

All Implemented Interfaces:
ParsedPattern, Iterable<DPattern>

public class DChoicePattern extends DContainerPattern
<choice> pattern.
Author:
Kohsuke Kawaguchi ([email protected])
  • Constructor Details

    • DChoicePattern

      public DChoicePattern()
  • Method Details

    • isNullable

      public boolean isNullable()
      Description copied from class: DPattern
      Returns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.
      Specified by:
      isNullable in class DPattern
    • accept

      public <V> V accept(DPatternVisitor<V> visitor)
      Specified by:
      accept in class DPattern