Class ClassDef
java.lang.Object
io.github.danielnaczo.python3parser.model.stmts.Statement
io.github.danielnaczo.python3parser.model.stmts.compoundStmts.ClassDef
- All Implemented Interfaces:
AST
-
Constructor Summary
ConstructorsConstructorDescriptionClassDef(Identifier name, Expression arguments, Statement body, List<Decorator> decoratorList) ClassDef(String name, Expression arguments) ClassDef(String name, Expression arguments, Statement body) -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(Python3ASTVisitor<R, P> visitor, P param) addDecorator(Decorator decorator) addFunction(FunctionDef function) addStatement(Statement statement) booleangetBody()getName()inthashCode()voidsetArguments(Optional<Expression> arguments) voidvoidsetDecoratorList(List<Decorator> decoratorList) voidsetName(Identifier name) toString()
-
Constructor Details
-
ClassDef
-
ClassDef
-
ClassDef
-
ClassDef
-
ClassDef
-
ClassDef
-
ClassDef
public ClassDef(Identifier name, Expression arguments, Statement body, List<Decorator> decoratorList)
-
-
Method Details
-
getName
-
setName
-
getArguments
-
setArguments
-
getBody
-
setBody
-
getDecoratorList
-
setDecoratorList
-
addClass
-
addFunction
-
addStatement
-
getClassDefs
-
getFunctionDefs
-
addDecorator
-
getDecorators
-
accept
-
equals
-
hashCode
public int hashCode() -
toString
-