Package org.sonar.python.tree
Class ElseStatementImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.ElseStatementImpl
-
- All Implemented Interfaces:
ElseStatement,Statement,Tree
public class ElseStatementImpl extends PyTree implements ElseStatement
-
-
Constructor Summary
Constructors Constructor Description ElseStatementImpl(Token elseKeyword, StatementList body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)StatementListbody()List<Tree>children()TokenelseKeyword()Tree.KindgetKind()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.python.api.tree.Tree
ancestors, astNode, descendants, descendants, firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
ElseStatementImpl
public ElseStatementImpl(Token elseKeyword, StatementList body)
-
-
Method Detail
-
elseKeyword
public Token elseKeyword()
- Specified by:
elseKeywordin interfaceElseStatement
-
body
public StatementList body()
- Specified by:
bodyin interfaceElseStatement
-
accept
public void accept(TreeVisitor visitor)
-
-