Package org.sonar.python.tree
Class RaiseStatementImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.RaiseStatementImpl
-
- All Implemented Interfaces:
RaiseStatement,Statement,Tree
public class RaiseStatementImpl extends PyTree implements RaiseStatement
-
-
Constructor Summary
Constructors Constructor Description RaiseStatementImpl(com.sonar.sslr.api.AstNode astNode, Token raiseKeyword, List<Expression> expressions, Token fromKeyword, Expression fromExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>children()List<Expression>expressions()ExpressionfromExpression()TokenfromKeyword()Tree.KindgetKind()TokenraiseKeyword()-
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
-
RaiseStatementImpl
public RaiseStatementImpl(com.sonar.sslr.api.AstNode astNode, Token raiseKeyword, List<Expression> expressions, @Nullable Token fromKeyword, @Nullable Expression fromExpression)
-
-
Method Detail
-
raiseKeyword
public Token raiseKeyword()
- Specified by:
raiseKeywordin interfaceRaiseStatement
-
fromKeyword
@CheckForNull public Token fromKeyword()
- Specified by:
fromKeywordin interfaceRaiseStatement
-
fromExpression
@CheckForNull public Expression fromExpression()
- Specified by:
fromExpressionin interfaceRaiseStatement
-
expressions
public List<Expression> expressions()
- Specified by:
expressionsin interfaceRaiseStatement
-
accept
public void accept(TreeVisitor visitor)
-
-