Top Fields Constructors Methods
org.python.antlr.ast

public Class alias

extends PythonTree
Class Inheritance
Known Direct Subclasses
org.python.antlr.ast.aliasDerived
Annotations
@ExposedType
name:_ast.alias
base:AST
Imports
org.antlr.runtime.Token, org.python.antlr.AST, .PythonTree, org.python.antlr.adapter.AstAdapters, 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 Name
private static final PyString[]
private static final PyString[]
private String
private List<Name>
public static final PyType
Inherited from org.python.antlr.PythonTree:
childrenfrom_future_checked

Constructor Summary

AccessConstructor and Description
public
alias(PyType subType)

public
public
alias(PyObject name, PyObject asname)

public
alias(Token token, String name, String asname)

public
alias(Integer ttype, Token token, String name, String asname)

public
alias(PythonTree tree, String name, String asname)

public
alias(Name name, Name asname)

public
alias(List<Name> nameNodes, Name asname)

Method Summary

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

Overrides org.python.core.PyObject.getDict.

xxx implements where meaningful

public String
public Name
public String
public List<Name>
public PyObject
public void
public void
public String
toString()

Overrides org.python.antlr.PythonTree.toString.

Returns a string representation of the object.

public String
public void
Inherited from org.python.antlr.PythonTree:
addChildaddChildrencreateChildrenListdeleteChilddottedNameListToStringdumpThisdumpThisdumpThisdupNodefreshenParentAndChildIndexesfreshenParentAndChildIndexesgetAntlrTypegetCharPositionInLinegetCharStartIndexgetCharStopIndexgetChildgetChildCountgetChildIndexgetChildrengetCol_offsetgetFirstChildWithTypegetLinegetLinenogetNodegetParentgetTextgetTokengetTokenStartIndexgetTokenStopIndexisNilrefersDirectlyToreplaceChildrensetCharStartIndexsetCharStopIndexsetChildsetChildIndexsetParentsetTokenStartIndexsetTokenStopIndextraverse

Field Detail

__dict__back to summary
public PyObject __dict__
asnameback to summary
private String asname
asnameNodeback to summary
private Name asnameNode
attributesback to summary
private static final PyString[] attributes

Hides org.python.core.PyObject.attributes.

fieldsback to summary
private static final PyString[] fields
nameback to summary
private String name
nameNodesback to summary
private List<Name> nameNodes
TYPEback to summary
public static final PyType TYPE

Hides org.python.antlr.AST.TYPE.

Constructor Detail

aliasback to summary
public alias(PyType subType)
aliasback to summary
public alias()
aliasback to summary
public alias(PyObject name, PyObject asname)
aliasback to summary
public alias(Token token, String name, String asname)
aliasback to summary
public alias(Integer ttype, Token token, String name, String asname)
aliasback to summary
public alias(PythonTree tree, String name, String asname)
aliasback to summary
public alias(Name name, Name asname)
aliasback to summary
public alias(List<Name> nameNodes, Name asname)

Method Detail

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

Overrides org.python.antlr.PythonTree.accept.

alias___init__back to summary
public void alias___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()
Annotations
@ExposedGet
name:_attributes
get_fieldsback to summary
public PyString[] get_fields()
Annotations
@ExposedGet
name:_fields
getAsnameback to summary
public PyObject getAsname()
Annotations
@ExposedGet
name:asname
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__

getInternalAsnameback to summary
public String getInternalAsname()
getInternalAsnameNodeback to summary
public Name getInternalAsnameNode()
getInternalNameback to summary
public String getInternalName()
getInternalNameNodesback to summary
public List<Name> getInternalNameNodes()
getNameback to summary
public PyObject getName()
Annotations
@ExposedGet
name:name
setAsnameback to summary
public void setAsname(PyObject asname)
Annotations
@ExposedSet
name:asname
setNameback to summary
public void setName(PyObject name)
Annotations
@ExposedSet
name:name
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.