Package org.sonar.python.tree
Class PyParenthesizedExpressionTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyParenthesizedExpressionTreeImpl
-
- All Implemented Interfaces:
PyExpressionTree,PyParenthesizedExpressionTree,Tree
public class PyParenthesizedExpressionTreeImpl extends PyTree implements PyParenthesizedExpressionTree
-
-
Constructor Summary
Constructors Constructor Description PyParenthesizedExpressionTreeImpl(com.sonar.sslr.api.Token leftParenthesis, PyExpressionTree expression, com.sonar.sslr.api.Token rightParenthesis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)List<Tree>children()PyExpressionTreeexpression()Tree.KindgetKind()com.sonar.sslr.api.TokenleftParenthesis()com.sonar.sslr.api.TokenrightParenthesis()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyParenthesizedExpressionTreeImpl
public PyParenthesizedExpressionTreeImpl(com.sonar.sslr.api.Token leftParenthesis, PyExpressionTree expression, com.sonar.sslr.api.Token rightParenthesis)
-
-
Method Detail
-
leftParenthesis
public com.sonar.sslr.api.Token leftParenthesis()
- Specified by:
leftParenthesisin interfacePyParenthesizedExpressionTree
-
expression
public PyExpressionTree expression()
- Specified by:
expressionin interfacePyParenthesizedExpressionTree
-
rightParenthesis
public com.sonar.sslr.api.Token rightParenthesis()
- Specified by:
rightParenthesisin interfacePyParenthesizedExpressionTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-