Interface ClassDef

All Superinterfaces:
Statement, Tree
All Known Implementing Classes:
ClassDefImpl

public interface ClassDef extends Statement
   decorators()
   class name()( args() ):
     docstring()
     body()
 
See https://docs.python.org/3/reference/compound_stmts.html#class-definitions
  • Method Details

    • decorators

      List<Decorator> decorators()
    • classKeyword

      Token classKeyword()
    • name

      Name name()
    • typeParams

      @CheckForNull TypeParams typeParams()
    • leftPar

      @CheckForNull Token leftPar()
    • args

      @CheckForNull ArgList args()
      null if class is defined without args class Foo:... or class Foo():...
    • rightPar

      @CheckForNull Token rightPar()
    • colon

      Token colon()
    • body

    • docstring

      @CheckForNull StringLiteral docstring()
    • classFields

      Set<Symbol> classFields()
      Contains fields and methods symbols
    • instanceFields

      Set<Symbol> instanceFields()