Package org.sonar.python.tree
Class TryStatementImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.TryStatementImpl
-
- All Implemented Interfaces:
Statement,Tree,TryStatement
public class TryStatementImpl extends PyTree implements TryStatement
-
-
Constructor Summary
Constructors Constructor Description TryStatementImpl(com.sonar.sslr.api.AstNode astNode, Token tryKeyword, StatementList tryBody, List<ExceptClause> exceptClauses, FinallyClause finallyClause, ElseStatement elseStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)StatementListbody()List<Tree>children()ElseStatementelseClause()List<ExceptClause>exceptClauses()FinallyClausefinallyClause()Tree.KindgetKind()TokentryKeyword()-
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
-
TryStatementImpl
public TryStatementImpl(com.sonar.sslr.api.AstNode astNode, Token tryKeyword, StatementList tryBody, List<ExceptClause> exceptClauses, @Nullable FinallyClause finallyClause, @Nullable ElseStatement elseStatement)
-
-
Method Detail
-
tryKeyword
public Token tryKeyword()
- Specified by:
tryKeywordin interfaceTryStatement
-
exceptClauses
public List<ExceptClause> exceptClauses()
- Specified by:
exceptClausesin interfaceTryStatement
-
finallyClause
@CheckForNull public FinallyClause finallyClause()
- Specified by:
finallyClausein interfaceTryStatement
-
elseClause
@CheckForNull public ElseStatement elseClause()
- Specified by:
elseClausein interfaceTryStatement
-
body
public StatementList body()
- Specified by:
bodyin interfaceTryStatement
-
accept
public void accept(TreeVisitor visitor)
-
-