Package org.sonar.python.tree
Class ListLiteralImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.ListLiteralImpl
-
- All Implemented Interfaces:
Expression,ListLiteral,Tree
public class ListLiteralImpl extends PyTree implements ListLiteral
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description ListLiteralImpl(Token leftBracket, ExpressionList elements, Token rightBracket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>computeChildren()ExpressionListelements()Tree.KindgetKind()TokenleftBracket()TokenrightBracket()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
ListLiteralImpl
public ListLiteralImpl(Token leftBracket, ExpressionList elements, Token rightBracket)
-
-
Method Detail
-
accept
public void accept(TreeVisitor visitor)
-
leftBracket
public Token leftBracket()
- Specified by:
leftBracketin interfaceListLiteral
-
elements
public ExpressionList elements()
- Specified by:
elementsin interfaceListLiteral
-
rightBracket
public Token rightBracket()
- Specified by:
rightBracketin interfaceListLiteral
-
-