Top Fields Constructors Methods
org.python.antlr.ast

public Class ClassDef

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

Constructor Summary

AccessConstructor and Description
public
ClassDef(PyType subType)

public
public
ClassDef(PyObject name, PyObject bases, PyObject body, PyObject decorator_list)

public
ClassDef(Token token, String name, List<expr> bases, List<stmt> body, List<expr> decorator_list)

public
ClassDef(Integer ttype, Token token, String name, List<expr> bases, List<stmt> body, List<expr> decorator_list)

public
ClassDef(PythonTree tree, String name, List<expr> bases, List<stmt> body, List<expr> decorator_list)

public
ClassDef(Token token, Name name, List<expr> bases, List<stmt> body, List<expr> decorator_list)

Method Summary

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

Overrides org.python.core.PyObject.getDict.

xxx implements where meaningful

public List<expr>
public List<stmt>
public List<expr>
public String
public Name
public int
public PyObject
public void
public void
public void
setCol_offset(int num)

public void
setDecorator_list(PyObject decorator_list)

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

basesback to summary
private List<expr> bases
bodyback to summary
private List<stmt> body
col_offsetback to summary
private int col_offset
decorator_listback to summary
private List<expr> decorator_list
fieldsback to summary
private static final PyString[] fields

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

linenoback to summary
private int lineno
nameback to summary
private String name
nameNodeback to summary
private Name nameNode
TYPEback to summary
public static final PyType TYPE

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

Constructor Detail

ClassDefback to summary
public ClassDef(PyType subType)
ClassDefback to summary
public ClassDef()
ClassDefback to summary
public ClassDef(PyObject name, PyObject bases, PyObject body, PyObject decorator_list)
ClassDefback to summary
public ClassDef(Token token, String name, List<expr> bases, List<stmt> body, List<expr> decorator_list)
ClassDefback to summary
public ClassDef(Integer ttype, Token token, String name, List<expr> bases, List<stmt> body, List<expr> decorator_list)
ClassDefback to summary
public ClassDef(PythonTree tree, String name, List<expr> bases, List<stmt> body, List<expr> decorator_list)
ClassDefback to summary
public ClassDef(Token token, Name name, List<expr> bases, List<stmt> body, List<expr> decorator_list)

Method Detail

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

Overrides org.python.antlr.PythonTree.accept.

ClassDef___init__back to summary
public void ClassDef___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.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
getBasesback to summary
public PyObject getBases()
Annotations
@ExposedGet
name:bases
getBodyback to summary
public PyObject getBody()
Annotations
@ExposedGet
name:body
getCol_offsetback to summary
public int getCol_offset()

Overrides org.python.antlr.PythonTree.getCol_offset.

Annotations
@ExposedGet
name:col_offset
getDecorator_listback to summary
public PyObject getDecorator_list()
Annotations
@ExposedGet
name:decorator_list
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__

getInternalBasesback to summary
public List<expr> getInternalBases()
getInternalBodyback to summary
public List<stmt> getInternalBody()
getInternalDecorator_listback to summary
public List<expr> getInternalDecorator_list()
getInternalNameback to summary
public String getInternalName()
getInternalNameNodeback to summary
public Name getInternalNameNode()
getLinenoback to summary
public int getLineno()

Overrides org.python.antlr.PythonTree.getLineno.

Annotations
@ExposedGet
name:lineno
getNameback to summary
public PyObject getName()
Annotations
@ExposedGet
name:name
setBasesback to summary
public void setBases(PyObject bases)
Annotations
@ExposedSet
name:bases
setBodyback to summary
public void setBody(PyObject body)
Annotations
@ExposedSet
name:body
setCol_offsetback to summary
public void setCol_offset(int num)
Annotations
@ExposedSet
name:col_offset
setDecorator_listback to summary
public void setDecorator_list(PyObject decorator_list)
Annotations
@ExposedSet
name:decorator_list
setLinenoback to summary
public void setLineno(int num)
Annotations
@ExposedSet
name:lineno
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.