Package org.sonar.python.tree
Class MatchStatementImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.MatchStatementImpl
-
- All Implemented Interfaces:
MatchStatement,Statement,Tree
public class MatchStatementImpl extends PyTree implements MatchStatement
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description MatchStatementImpl(Token matchKeyword, Expression subjectExpression, Token colon, Token newLine, Token indent, List<CaseBlock> caseBlocks, Token dedent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<CaseBlock>caseBlocks()Tokencolon()Tree.KindgetKind()TokenmatchKeyword()ExpressionsubjectExpression()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Method Detail
-
matchKeyword
public Token matchKeyword()
- Specified by:
matchKeywordin interfaceMatchStatement
-
subjectExpression
public Expression subjectExpression()
- Specified by:
subjectExpressionin interfaceMatchStatement
-
colon
public Token colon()
- Specified by:
colonin interfaceMatchStatement
-
caseBlocks
public List<CaseBlock> caseBlocks()
- Specified by:
caseBlocksin interfaceMatchStatement
-
accept
public void accept(TreeVisitor visitor)
-
-