Package org.sonar.python.tree
Class ParenthesizedExpressionImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.ParenthesizedExpressionImpl
-
- All Implemented Interfaces:
Expression,ParenthesizedExpression,Tree
public class ParenthesizedExpressionImpl extends PyTree implements ParenthesizedExpression
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description ParenthesizedExpressionImpl(Token leftParenthesis, Expression expression, Token rightParenthesis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>computeChildren()Expressionexpression()Tree.KindgetKind()TokenleftParenthesis()TokenrightParenthesis()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
ParenthesizedExpressionImpl
public ParenthesizedExpressionImpl(Token leftParenthesis, Expression expression, Token rightParenthesis)
-
-
Method Detail
-
leftParenthesis
public Token leftParenthesis()
- Specified by:
leftParenthesisin interfaceParenthesizedExpression
-
expression
public Expression expression()
- Specified by:
expressionin interfaceParenthesizedExpression
-
rightParenthesis
public Token rightParenthesis()
- Specified by:
rightParenthesisin interfaceParenthesizedExpression
-
accept
public void accept(TreeVisitor visitor)
-
-