Top Fields Constructors Methods
org.python.antlr.ast

public Class ImportFrom

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

Constructor Summary

AccessConstructor and Description
public
ImportFrom(PyType subType)

public
public
ImportFrom(PyObject module, PyObject names, PyObject level)

public
ImportFrom(Token token, String module, List<alias> names, Integer level)

public
ImportFrom(Integer ttype, Token token, String module, List<alias> names, Integer level)

public
ImportFrom(PythonTree tree, String module, List<alias> names, Integer level)

public
ImportFrom(Token token, String module, List<Name> moduleNames, List<alias> names, Integer level)

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 int
public PyObject
getDict()

Overrides org.python.core.PyObject.getDict.

xxx implements where meaningful

public Integer
public String
public List<Name>
public List<alias>
public PyObject
public int
public PyObject
public PyObject
public void
ImportFrom___init__(PyObject[] args, String[] keywords)

public void
setCol_offset(int num)

public void
public void
setLineno(int num)

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

col_offsetback to summary
private int col_offset
fieldsback to summary
private static final PyString[] fields

Hides org.python.antlr.base.stmt.fields.

levelback to summary
private Integer level
linenoback to summary
private int lineno
moduleback to summary
private String module
moduleNamesback to summary
private List<Name> moduleNames
namesback to summary
private List<alias> names
TYPEback to summary
public static final PyType TYPE

Hides org.python.antlr.base.stmt.TYPE.

Constructor Detail

ImportFromback to summary
public ImportFrom(PyType subType)
ImportFromback to summary
public ImportFrom()
ImportFromback to summary
public ImportFrom(PyObject module, PyObject names, PyObject level)
ImportFromback to summary
public ImportFrom(Token token, String module, List<alias> names, Integer level)
ImportFromback to summary
public ImportFrom(Integer ttype, Token token, String module, List<alias> names, Integer level)
ImportFromback to summary
public ImportFrom(PythonTree tree, String module, List<alias> names, Integer level)
ImportFromback to summary
public ImportFrom(Token token, String module, List<Name> moduleNames, List<alias> names, Integer level)

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.stmt.get_attributes.

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

Overrides org.python.antlr.base.stmt.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
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__
getInternalLevelback to summary
public Integer getInternalLevel()
getInternalModuleback to summary
public String getInternalModule()
getInternalModuleNamesback to summary
public List<Name> getInternalModuleNames()
getInternalNamesback to summary
public List<alias> getInternalNames()
getLevelback to summary
public PyObject getLevel()
Annotations
@ExposedGet
name:level
getLinenoback to summary
public int getLineno()

Overrides org.python.antlr.PythonTree.getLineno.

Annotations
@ExposedGet
name:lineno
getModuleback to summary
public PyObject getModule()
Annotations
@ExposedGet
name:module
getNamesback to summary
public PyObject getNames()
Annotations
@ExposedGet
name:names
ImportFrom___init__back to summary
public void ImportFrom___init__(PyObject[] args, String[] keywords)
Annotations
@ExposedNew
@ExposedMethod
setCol_offsetback to summary
public void setCol_offset(int num)
Annotations
@ExposedSet
name:col_offset
setLevelback to summary
public void setLevel(PyObject level)
Annotations
@ExposedSet
name:level
setLinenoback to summary
public void setLineno(int num)
Annotations
@ExposedSet
name:lineno
setModuleback to summary
public void setModule(PyObject module)
Annotations
@ExposedSet
name:module
setNamesback to summary
public void setNames(PyObject names)
Annotations
@ExposedSet
name:names
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.