Top Fields Constructors Methods
org.python.antlr.ast

public Class Compare

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

Field Summary

Modifier and TypeField and Description
public PyObject
private static final PyString[]
private int
private List<expr>
private static final PyString[]
private expr
private int
private List<cmpopType>
public static final PyType

Constructor Summary

AccessConstructor and Description
public
Compare(PyType subType)

public
public
Compare(PyObject left, PyObject ops, PyObject comparators)

public
Compare(Token token, expr left, List<cmpopType> ops, List<expr> comparators)

public
Compare(Integer ttype, Token token, expr left, List<cmpopType> ops, List<expr> comparators)

public
Compare(PythonTree tree, expr left, List<cmpopType> ops, List<expr> comparators)

Method Summary

Modifier and TypeMethod and Description
public <R> R
public void
Compare___init__(PyObject[] args, String[] keywords)

private void
public PyObject
fastGetDict()

Overrides org.python.core.PyObject.fastGetDict.

xxx implements where meaningful

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

Overrides org.python.core.PyObject.getDict.

xxx implements where meaningful

public List<expr>
public expr
public List<cmpopType>
public PyObject
public int
public PyObject
public void
setCol_offset(int num)

public void
setComparators(PyObject comparators)

public void
public void
setLineno(int num)

public void
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.expr.attributes.

col_offsetback to summary
private int col_offset
comparatorsback to summary
private List<expr> comparators
fieldsback to summary
private static final PyString[] fields

Hides org.python.antlr.base.expr.fields.

leftback to summary
private expr left
linenoback to summary
private int lineno
opsback to summary
private List<cmpopType> ops
TYPEback to summary
public static final PyType TYPE

Hides org.python.antlr.base.expr.TYPE.

Constructor Detail

Compareback to summary
public Compare(PyType subType)
Compareback to summary
public Compare()
Compareback to summary
public Compare(PyObject left, PyObject ops, PyObject comparators)
Compareback to summary
public Compare(Token token, expr left, List<cmpopType> ops, List<expr> comparators)
Compareback to summary
public Compare(Integer ttype, Token token, expr left, List<cmpopType> ops, List<expr> comparators)
Compareback to summary
public Compare(PythonTree tree, expr left, List<cmpopType> ops, List<expr> comparators)

Method Detail

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

Overrides org.python.antlr.PythonTree.accept.

Compare___init__back to summary
public void Compare___init__(PyObject[] args, String[] keywords)
Annotations
@ExposedNew
@ExposedMethod
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.expr.get_attributes.

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

Overrides org.python.antlr.base.expr.get_fields.

Annotations
@ExposedGet
name:_fields
getCol_offsetback to summary
public int getCol_offset()

Overrides org.python.antlr.PythonTree.getCol_offset.

Annotations
@ExposedGet
name:col_offset
getComparatorsback to summary
public PyObject getComparators()
Annotations
@ExposedGet
name:comparators
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__
getInternalComparatorsback to summary
public List<expr> getInternalComparators()
getInternalLeftback to summary
public expr getInternalLeft()
getInternalOpsback to summary
public List<cmpopType> getInternalOps()
getLeftback to summary
public PyObject getLeft()
Annotations
@ExposedGet
name:left
getLinenoback to summary
public int getLineno()

Overrides org.python.antlr.PythonTree.getLineno.

Annotations
@ExposedGet
name:lineno
getOpsback to summary
public PyObject getOps()
Annotations
@ExposedGet
name:ops
setCol_offsetback to summary
public void setCol_offset(int num)
Annotations
@ExposedSet
name:col_offset
setComparatorsback to summary
public void setComparators(PyObject comparators)
Annotations
@ExposedSet
name:comparators
setLeftback to summary
public void setLeft(PyObject left)
Annotations
@ExposedSet
name:left
setLinenoback to summary
public void setLineno(int num)
Annotations
@ExposedSet
name:lineno
setOpsback to summary
public void setOps(PyObject ops)
Annotations
@ExposedSet
name:ops
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.