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
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description TryStatementImpl(Token tryKeyword, Token colon, Token newLine, Token indent, StatementList tryBody, Token dedent, List<ExceptClause> exceptClauses, FinallyClause finallyClause, ElseClause elseClause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)StatementListbody()List<Tree>computeChildren()ElseClauseelseClause()List<ExceptClause>exceptClauses()FinallyClausefinallyClause()Tree.KindgetKind()TokentryKeyword()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
TryStatementImpl
public TryStatementImpl(Token tryKeyword, Token colon, @Nullable Token newLine, @Nullable Token indent, StatementList tryBody, @Nullable Token dedent, List<ExceptClause> exceptClauses, @Nullable FinallyClause finallyClause, @Nullable ElseClause elseClause)
-
-
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 ElseClause elseClause()
- Specified by:
elseClausein interfaceTryStatement
-
body
public StatementList body()
- Specified by:
bodyin interfaceTryStatement
-
accept
public void accept(TreeVisitor visitor)
-
-