Package org.sonar.python.tree
Class PyTryStatementTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyTryStatementTreeImpl
-
- All Implemented Interfaces:
PyStatementTree,PyTryStatementTree,Tree
public class PyTryStatementTreeImpl extends PyTree implements PyTryStatementTree
-
-
Constructor Summary
Constructors Constructor Description PyTryStatementTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token tryKeyword, PyStatementListTree tryBody, List<PyExceptClauseTree> exceptClauses, PyFinallyClauseTree finallyClause, PyElseStatementTree elseStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)PyStatementListTreebody()List<Tree>children()PyElseStatementTreeelseClause()List<PyExceptClauseTree>exceptClauses()PyFinallyClauseTreefinallyClause()Tree.KindgetKind()com.sonar.sslr.api.TokentryKeyword()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyTryStatementTreeImpl
public PyTryStatementTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token tryKeyword, PyStatementListTree tryBody, List<PyExceptClauseTree> exceptClauses, @Nullable PyFinallyClauseTree finallyClause, @Nullable PyElseStatementTree elseStatement)
-
-
Method Detail
-
tryKeyword
public com.sonar.sslr.api.Token tryKeyword()
- Specified by:
tryKeywordin interfacePyTryStatementTree
-
exceptClauses
public List<PyExceptClauseTree> exceptClauses()
- Specified by:
exceptClausesin interfacePyTryStatementTree
-
finallyClause
@CheckForNull public PyFinallyClauseTree finallyClause()
- Specified by:
finallyClausein interfacePyTryStatementTree
-
elseClause
@CheckForNull public PyElseStatementTree elseClause()
- Specified by:
elseClausein interfacePyTryStatementTree
-
body
public PyStatementListTree body()
- Specified by:
bodyin interfacePyTryStatementTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-