Top Fields Constructors Methods
org.python.antlr.ast

public Class Attribute

extends expr
implements Context
Class Inheritance
All Implemented Interfaces
org.python.antlr.ast.Context
Known Direct Subclasses
org.python.antlr.ast.AttributeDerived
Annotations
@ExposedType
name:_ast.Attribute
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, .Py, .PyObject, .PyString, .PyStringMap, .PyType, org.python.expose.ExposedGet, .ExposedMethod, .ExposedNew, .ExposedSet, .ExposedType

Field Summary

Modifier and TypeField and Description
public PyObject
private String
private static final PyString[]
private Name
private int
private expr_contextType
private static final PyString[]
private int
public static final PyType
private expr

Constructor Summary

AccessConstructor and Description
public
Attribute(PyType subType)

public
public
Attribute(PyObject value, PyObject attr, PyObject ctx)

public
Attribute(Token token, expr value, String attr, expr_contextType ctx)

public
Attribute(Integer ttype, Token token, expr value, String attr, expr_contextType ctx)

public
public
Attribute(Token token, expr value, Name attr, expr_contextType ctx)

public
Attribute(Integer ttype, Token token, expr value, Name attr, expr_contextType ctx)

Method Summary

Modifier and TypeMethod and Description
public <R> R
public void
Attribute___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 PyObject
public int
public PyObject
public PyObject
getDict()

Overrides org.python.core.PyObject.getDict.

xxx implements where meaningful

public String
public Name
public expr_contextType
public expr
public int
public PyObject
public void
public void
setCol_offset(int num)

public void
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__
attrback to summary
private String attr
attributesback to summary
private static final PyString[] attributes

Hides org.python.antlr.base.expr.attributes.

attrNameback to summary
private Name attrName
col_offsetback to summary
private int col_offset
ctxback to summary
private expr_contextType ctx
fieldsback to summary
private static final PyString[] fields

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

linenoback to summary
private int lineno
TYPEback to summary
public static final PyType TYPE

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

valueback to summary
private expr value

Constructor Detail

Attributeback to summary
public Attribute(PyType subType)
Attributeback to summary
public Attribute()
Attributeback to summary
public Attribute(PyObject value, PyObject attr, PyObject ctx)
Attributeback to summary
public Attribute(Token token, expr value, String attr, expr_contextType ctx)
Attributeback to summary
public Attribute(Integer ttype, Token token, expr value, String attr, expr_contextType ctx)
Attributeback to summary
public Attribute(PythonTree tree, expr value, String attr, expr_contextType ctx)
Attributeback to summary
public Attribute(Token token, expr value, Name attr, expr_contextType ctx)
Attributeback to summary
public Attribute(Integer ttype, Token token, expr value, Name attr, expr_contextType ctx)

Method Detail

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

Overrides org.python.antlr.PythonTree.accept.

Attribute___init__back to summary
public void Attribute___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
getAttrback to summary
public PyObject getAttr()
Annotations
@ExposedGet
name:attr
getCol_offsetback to summary
public int getCol_offset()

Overrides org.python.antlr.PythonTree.getCol_offset.

Annotations
@ExposedGet
name:col_offset
getCtxback to summary
public PyObject getCtx()
Annotations
@ExposedGet
name:ctx
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__

getInternalAttrback to summary
public String getInternalAttr()
getInternalAttrNameback to summary
public Name getInternalAttrName()
getInternalCtxback to summary
public expr_contextType getInternalCtx()
getInternalValueback to summary
public expr getInternalValue()
getLinenoback to summary
public int getLineno()

Overrides org.python.antlr.PythonTree.getLineno.

Annotations
@ExposedGet
name:lineno
getValueback to summary
public PyObject getValue()
Annotations
@ExposedGet
name:value
setAttrback to summary
public void setAttr(PyObject attr)
Annotations
@ExposedSet
name:attr
setCol_offsetback to summary
public void setCol_offset(int num)
Annotations
@ExposedSet
name:col_offset
setContextback to summary
public void setContext(expr_contextType c)

Implements org.python.antlr.ast.Context.setContext.

setCtxback to summary
public void setCtx(PyObject ctx)
Annotations
@ExposedSet
name:ctx
setLinenoback to summary
public void setLineno(int num)
Annotations
@ExposedSet
name:lineno
setValueback to summary
public void setValue(PyObject value)
Annotations
@ExposedSet
name:value
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.