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
-
-
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>children()Expressionexpression()Tree.KindgetKind()TokenleftParenthesis()TokenrightParenthesis()-
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
-
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)
-
-