Package org.sonar.python.tree
Class ExceptClauseImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.ExceptClauseImpl
-
- All Implemented Interfaces:
ExceptClause,Tree
public class ExceptClauseImpl extends PyTree implements ExceptClause
-
-
Constructor Summary
Constructors Constructor Description ExceptClauseImpl(Token exceptKeyword, StatementList body)ExceptClauseImpl(Token exceptKeyword, StatementList body, Expression exception)ExceptClauseImpl(Token exceptKeyword, StatementList body, Expression exception, Token asNode, Token commaNode, Expression exceptionInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)TokenasKeyword()StatementListbody()List<Tree>children()TokencommaToken()Expressionexception()ExpressionexceptionInstance()TokenexceptKeyword()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
-
ExceptClauseImpl
public ExceptClauseImpl(Token exceptKeyword, StatementList body)
-
ExceptClauseImpl
public ExceptClauseImpl(Token exceptKeyword, StatementList body, Expression exception, @Nullable Token asNode, @Nullable Token commaNode, Expression exceptionInstance)
-
ExceptClauseImpl
public ExceptClauseImpl(Token exceptKeyword, StatementList body, Expression exception)
-
-
Method Detail
-
exceptKeyword
public Token exceptKeyword()
- Specified by:
exceptKeywordin interfaceExceptClause
-
body
public StatementList body()
- Specified by:
bodyin interfaceExceptClause
-
asKeyword
@CheckForNull public Token asKeyword()
- Specified by:
asKeywordin interfaceExceptClause
-
commaToken
@CheckForNull public Token commaToken()
- Specified by:
commaTokenin interfaceExceptClause
-
exception
@CheckForNull public Expression exception()
- Specified by:
exceptionin interfaceExceptClause
-
exceptionInstance
@CheckForNull public Expression exceptionInstance()
- Specified by:
exceptionInstancein interfaceExceptClause
-
accept
public void accept(TreeVisitor visitor)
-
-