| Constructor and Description |
|---|
ClassDef(Identifier name,
Expression arguments,
Statement body,
List<Decorator> decoratorList) |
ClassDef(String name) |
ClassDef(String name,
Expression arguments) |
ClassDef(String name,
Expression arguments,
Statement body) |
ClassDef(String name,
Expression arguments,
Statement body,
List<Decorator> decoratorList) |
ClassDef(String name,
Statement body) |
ClassDef(String name,
Statement body,
List<Decorator> decoratorList) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(Python3ASTVisitor<R,P> visitor,
P param) |
ClassDef |
addClass(ClassDef clazz) |
Decorator |
addDecorator(Decorator decorator) |
FunctionDef |
addFunction(FunctionDef function) |
Statement |
addStatement(Statement statement) |
boolean |
equals(Object o) |
Optional<Expression> |
getArguments() |
Statement |
getBody() |
List<ClassDef> |
getClassDefs() |
List<Decorator> |
getDecoratorList() |
List<Decorator> |
getDecorators() |
List<FunctionDef> |
getFunctionDefs() |
Identifier |
getName() |
int |
hashCode() |
void |
setArguments(Optional<Expression> arguments) |
void |
setBody(Statement body) |
void |
setDecoratorList(List<Decorator> decoratorList) |
void |
setName(Identifier name) |
String |
toString() |
public ClassDef(String name)
public ClassDef(String name, Expression arguments)
public ClassDef(String name, Expression arguments, Statement body)
public ClassDef(String name, Expression arguments, Statement body, List<Decorator> decoratorList)
public ClassDef(Identifier name, Expression arguments, Statement body, List<Decorator> decoratorList)
public Identifier getName()
public void setName(Identifier name)
public Optional<Expression> getArguments()
public void setArguments(Optional<Expression> arguments)
public Statement getBody()
public void setBody(Statement body)
public FunctionDef addFunction(FunctionDef function)
public List<FunctionDef> getFunctionDefs()
public <R,P> R accept(Python3ASTVisitor<R,P> visitor, P param)
Copyright © 2019–2021. All rights reserved.