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 Details

    • attributeName

      Name attributeName()
    • equalToken

      Token equalToken()
    • pattern

      Pattern pattern()