Package org.sonar.python.tree
Class PyListLiteralTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyListLiteralTreeImpl
-
- All Implemented Interfaces:
PyExpressionTree,PyListLiteralTree,Tree
public class PyListLiteralTreeImpl extends PyTree implements PyListLiteralTree
-
-
Constructor Summary
Constructors Constructor Description PyListLiteralTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token leftBracket, PyExpressionListTree elements, com.sonar.sslr.api.Token rightBracket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)List<Tree>children()PyExpressionListTreeelements()Tree.KindgetKind()com.sonar.sslr.api.TokenleftBracket()com.sonar.sslr.api.TokenrightBracket()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyListLiteralTreeImpl
public PyListLiteralTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token leftBracket, PyExpressionListTree elements, com.sonar.sslr.api.Token rightBracket)
-
-
Method Detail
-
accept
public void accept(PyTreeVisitor visitor)
-
leftBracket
public com.sonar.sslr.api.Token leftBracket()
- Specified by:
leftBracketin interfacePyListLiteralTree
-
elements
public PyExpressionListTree elements()
- Specified by:
elementsin interfacePyListLiteralTree
-
rightBracket
public com.sonar.sslr.api.Token rightBracket()
- Specified by:
rightBracketin interfacePyListLiteralTree
-
-