Top Fields Constructors Methods
org.python.antlr.ast

public Class Slice

extends slice
Class Inheritance
Known Direct Subclasses
org.python.antlr.ast.SliceDerived
Annotations
@ExposedType
name:_ast.Slice
base:slice
Imports
org.antlr.runtime.Token, org.python.antlr.PythonTree, org.python.antlr.adapter.AstAdapters, org.python.antlr.base.expr, .slice, org.python.core.ArgParser, .Py, .PyObject, .PyString, .PyStringMap, .PyType, org.python.expose.ExposedGet, .ExposedMethod, .ExposedNew, .ExposedSet, .ExposedType

Field Summary

Modifier and TypeField and Description
public PyObject
private static final PyString[]
private static final PyString[]
private expr
private expr
public static final PyType
private expr

Constructor Summary

AccessConstructor and Description
public
Slice(PyType subType)

public
public
Slice(PyObject lower, PyObject upper, PyObject step)

public
Slice(Token token, expr lower, expr upper, expr step)

public
Slice(Integer ttype, Token token, expr lower, expr upper, expr step)

public
Slice(PythonTree tree, expr lower, expr upper, expr step)

Method Summary

Modifier and TypeMethod and Description
public <R> R
private void
public PyObject
fastGetDict()

Overrides org.python.core.PyObject.fastGetDict.

xxx implements where meaningful

public PyString[]
public PyString[]
public PyObject
getDict()

Overrides org.python.core.PyObject.getDict.

xxx implements where meaningful

public expr
public expr
public expr
public PyObject
public PyObject
public PyObject
public void
public void
public void
public void
Slice___init__(PyObject[] args, String[] keywords)

public String
toString()

Overrides org.python.antlr.PythonTree.toString.

Returns a string representation of the object.

public String
public void

Field Detail

__dict__back to summary
public PyObject __dict__
attributesback to summary
private static final PyString[] attributes

Hides org.python.antlr.base.slice.attributes.

fieldsback to summary
private static final PyString[] fields

Hides org.python.antlr.base.slice.fields.

lowerback to summary
private expr lower
stepback to summary
private expr step
TYPEback to summary
public static final PyType TYPE

Hides org.python.antlr.base.slice.TYPE.

upperback to summary
private expr upper

Constructor Detail

Sliceback to summary
public Slice(PyType subType)
Sliceback to summary
public Slice()
Sliceback to summary
public Slice(PyObject lower, PyObject upper, PyObject step)
Sliceback to summary
public Slice(Token token, expr lower, expr upper, expr step)
Sliceback to summary
public Slice(Integer ttype, Token token, expr lower, expr upper, expr step)
Sliceback to summary
public Slice(PythonTree tree, expr lower, expr upper, expr step)

Method Detail

acceptback to summary
public <R> R accept(VisitorIF<R> visitor) throws Exception

Overrides org.python.antlr.PythonTree.accept.

ensureDictback to summary
private void ensureDict()
fastGetDictback to summary
public PyObject fastGetDict()

Overrides org.python.core.PyObject.fastGetDict.

Doc from org.python.core.PyObject.fastGetDict.

xxx implements where meaningful

Returns:PyObject

internal object per instance dict or null

Annotations
@Override
get_attributesback to summary
public PyString[] get_attributes()

Overrides org.python.antlr.base.slice.get_attributes.

Annotations
@ExposedGet
name:_attributes
get_fieldsback to summary
public PyString[] get_fields()

Overrides org.python.antlr.base.slice.get_fields.

Annotations
@ExposedGet
name:_fields
getDictback to summary
public PyObject getDict()

Overrides org.python.core.PyObject.getDict.

Doc from org.python.core.PyObject.getDict.

xxx implements where meaningful

Returns:PyObject

internal object __dict__ or null

Annotations
@ExposedGet
name:__dict__
getInternalLowerback to summary
public expr getInternalLower()
getInternalStepback to summary
public expr getInternalStep()
getInternalUpperback to summary
public expr getInternalUpper()
getLowerback to summary
public PyObject getLower()
Annotations
@ExposedGet
name:lower
getStepback to summary
public PyObject getStep()
Annotations
@ExposedGet
name:step
getUpperback to summary
public PyObject getUpper()
Annotations
@ExposedGet
name:upper
setLowerback to summary
public void setLower(PyObject lower)
Annotations
@ExposedSet
name:lower
setStepback to summary
public void setStep(PyObject step)
Annotations
@ExposedSet
name:step
setUpperback to summary
public void setUpper(PyObject upper)
Annotations
@ExposedSet
name:upper
Slice___init__back to summary
public void Slice___init__(PyObject[] args, String[] keywords)
Annotations
@ExposedNew
@ExposedMethod
toStringback to summary
public String toString()

Overrides org.python.antlr.PythonTree.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@ExposedGet
name:repr
toStringTreeback to summary
public String toStringTree()

Overrides org.python.antlr.PythonTree.toStringTree.

traverseback to summary
public void traverse(VisitorIF<?> visitor) throws Exception

Overrides org.python.antlr.PythonTree.traverse.