Interface ClassDef
-
- All Known Implementing Classes:
ClassDefImpl
public interface ClassDef extends Statement
See https://docs.python.org/3/reference/compound_stmts.html#class-definitionsdecorators()classname()(args()):docstring()body()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArgListargs()null if class is defined without argsclass Foo:...orclass Foo():...StatementListbody()Set<Symbol>classFields()Contains fields and methods symbolsTokenclassKeyword()Tokencolon()List<Decorator>decorators()StringLiteraldocstring()Set<Symbol>instanceFields()TokenleftPar()Namename()TokenrightPar()
-
-
-
Method Detail
-
classKeyword
Token classKeyword()
-
name
Name name()
-
leftPar
@CheckForNull Token leftPar()
-
args
@CheckForNull ArgList args()
null if class is defined without argsclass Foo:...orclass Foo():...
-
rightPar
@CheckForNull Token rightPar()
-
colon
Token colon()
-
body
StatementList body()
-
docstring
@CheckForNull StringLiteral docstring()
-
-