Interface OrPattern

  • All Superinterfaces:
    Pattern, Tree
    All Known Implementing Classes:
    OrPatternImpl

    public interface OrPattern
    extends Pattern
    OR pattern
       case "foo" | "bar": ...
     
    See https://docs.python.org/3/reference/compound_stmts.html#or-patterns