Package org.sonar.python.api.tree
Interface ClassDef
-
- All Known Implementing Classes:
ClassDefImpl
public interface ClassDef extends Statement
-
-
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()TokenclassKeyword()Tokencolon()List<Decorator>decorators()Tokendocstring()Set<Symbol>instanceFields()TokenleftPar()Namename()TokenrightPar()-
Methods inherited from interface org.sonar.python.api.tree.Tree
accept, ancestors, astNode, children, descendants, descendants, firstToken, getKind, is, lastToken, parent
-
-
-
-
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 Token docstring()
-
-