Package org.sonar.python.tree
Class ClassDefImpl
java.lang.Object
org.sonar.python.tree.PyTree
org.sonar.python.tree.ClassDefImpl
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken -
Constructor Summary
ConstructorsConstructorDescriptionClassDefImpl(List<Decorator> decorators, Token classKeyword, Name name, TypeParams typeParams, Token leftPar, ArgList args, Token rightPar, Token colon, Token newLine, Token indent, StatementList body, Token dedent, StringLiteral docstring) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) voidaddClassField(Symbol field) voidaddInstanceField(Symbol field) args()null if class is defined without argsclass Foo:...orclass Foo():...body()Contains fields and methods symbolscolon()getKind()leftPar()name()rightPar()Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
Constructor Details
-
ClassDefImpl
public ClassDefImpl(List<Decorator> decorators, Token classKeyword, Name name, @Nullable TypeParams typeParams, @Nullable Token leftPar, @Nullable ArgList args, @Nullable Token rightPar, Token colon, @Nullable Token newLine, @Nullable Token indent, StatementList body, @Nullable Token dedent, StringLiteral docstring)
-
-
Method Details
-
getKind
-
accept
-
decorators
- Specified by:
decoratorsin interfaceClassDef
-
classKeyword
- Specified by:
classKeywordin interfaceClassDef
-
name
-
typeParams
- Specified by:
typeParamsin interfaceClassDef
-
leftPar
-
args
Description copied from interface:ClassDefnull if class is defined without argsclass Foo:...orclass Foo():... -
rightPar
-
colon
-
body
-
docstring
-
classFields
Description copied from interface:ClassDefContains fields and methods symbols- Specified by:
classFieldsin interfaceClassDef
-
instanceFields
- Specified by:
instanceFieldsin interfaceClassDef
-
addClassField
-
addInstanceField
-
computeChildren
-