Interface LiteralPattern

All Superinterfaces:
Pattern, Tree
All Known Implementing Classes:
LiteralPatternImpl

public interface LiteralPattern extends Pattern
Literal Pattern
   case "foo":
     ...
   case 42:
     ...
   case True:
     ...
   case None:
     ...
 
See https://docs.python.org/3/reference/compound_stmts.html#literal-patterns
  • Method Details

    • valueAsString

      String valueAsString()