Interface KeywordPattern

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

    public interface KeywordPattern
    extends Pattern
    Keyword pattern Used only inside Class pattern
       case Foo(attributeName() = pattern()):
         ...
     
    See https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-keyword_pattern
    • Method Detail

      • attributeName

        Name attributeName()
      • equalToken

        Token equalToken()