Package org.sonar.python.tree
Class SliceItemImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.SliceItemImpl
-
-
Constructor Summary
Constructors Constructor Description SliceItemImpl(com.sonar.sslr.api.AstNode node, Expression lowerBound, Token boundSeparator, Expression upperBound, Token strideSeparator, Expression stride)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)TokenboundSeparator()List<Tree>children()Tree.KindgetKind()ExpressionlowerBound()Expressionstride()TokenstrideSeparator()ExpressionupperBound()-
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
-
SliceItemImpl
public SliceItemImpl(com.sonar.sslr.api.AstNode node, @Nullable Expression lowerBound, Token boundSeparator, @Nullable Expression upperBound, @Nullable Token strideSeparator, @Nullable Expression stride)
-
-
Method Detail
-
lowerBound
@CheckForNull public Expression lowerBound()
- Specified by:
lowerBoundin interfaceSliceItem
-
boundSeparator
public Token boundSeparator()
- Specified by:
boundSeparatorin interfaceSliceItem
-
upperBound
@CheckForNull public Expression upperBound()
- Specified by:
upperBoundin interfaceSliceItem
-
strideSeparator
@CheckForNull public Token strideSeparator()
- Specified by:
strideSeparatorin interfaceSliceItem
-
stride
@CheckForNull public Expression stride()
-
accept
public void accept(TreeVisitor visitor)
-
-