Table Of Contents

Previous topic

node.ext.template

Next topic

agx.transform.xmi2uml

This Page

node.ext.python

API

class node.ext.python.Block(text=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode, node.ext.python.nodes._TextMixin

endlineno
lines
parserfactory

alias of BaseParser

rendererfactory

alias of BlockRenderer

startlineno
interface node.ext.python.interfaces.IBlock

Extends: node.ext.python.interfaces.IPythonNode

Python code block.

text

block contents as text.

lines

List of code lines.

class node.ext.python.Class(classname=None, astnode=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode

decorators(name=None)
defendlineno
parserfactory

alias of ClassParser

rendererfactory

alias of ClassRenderer

interface node.ext.python.interfaces.IClass

Extends: node.ext.python.interfaces.IPythonNode

Python class.

defendlineno

End line number of class def. Read-only.

classname

Name of the class.

bases

List of base classes for this class

decorators(name=None)

Return decorators. If name is not None, filter by name.

class node.ext.python.Decorator(decoratorname=None, astnode=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode, node.ext.python.nodes.CallableArguments

bufend
endlineno
equals(other)
nodelevel
parserfactory

alias of DecoratorParser

rendererfactory

alias of DecoratorRenderer

interface node.ext.python.interfaces.IDecorator

Extends: node.ext.python.interfaces.IPythonNode, node.ext.python.interfaces.ICallableArguments

Decorator.

equals(other)

Check whether other decorator is equal to self.

decoratorname

The name of the decorator.

class node.ext.python.Function(functionname=None, astnode=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode, node.ext.python.nodes.CallableArguments

bufstart
decorators(name=None)
defendlineno
initdecorators()
parserfactory

alias of FunctionParser

rendererfactory

alias of FunctionRenderer

interface node.ext.python.interfaces.IFunction

Extends: node.ext.python.interfaces.IPythonNode, node.ext.python.interfaces.ICallableArguments

Python function.

defendlineno

End line number of function def. Read-only.

decorators(name=None)

Return decorators. If name is not None, filter by name.

functionname

Name of the function

class node.ext.python.Docstring(text=None, astnode=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode, node.ext.python.nodes._TextMixin

bufstart
lines
parserfactory

alias of BaseParser

rendererfactory

alias of DocstringRenderer

startlineno
interface node.ext.python.interfaces.IDocstring

Extends: node.ext.python.interfaces.IPythonNode

Docstring.

text

block contents as text.

lines

The doc string contents.

class node.ext.python.Import(fromimport=None, names=[], astnode=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode

bufend
endlineno
parserfactory

alias of ImportParser

rendererfactory

alias of ImportRenderer

interface node.ext.python.interfaces.IImport

Extends: node.ext.python.interfaces.IPythonNode

Import line.

names

List of tuples containing (importname, asname)

fromimport

The module name from import or None

class node.ext.python.Module(name=None)

Bases: node.ext.python.nodes.PythonNode

buffer
filepath
indent
modulename
parserfactory

alias of ModuleParser

rendererfactory

alias of ModuleRenderer

interface node.ext.python.interfaces.IModule

Extends: node.ext.directory.interfaces.IFile, node.ext.python.interfaces.IPythonNode

Python module.

bufoffset

Number of lines stripped at the top of a module file

modulename

The name of the module.

encoding

The file encoding. Defaults to utf-8

class node.ext.python.ProtectedSection(sectionname=None, buffer=[])

Bases: node.ext.python.nodes.PythonNode, node.ext.python.nodes._TextMixin

lines
parserfactory

alias of BaseParser

rendererfactory

alias of ProtectedSectionRenderer

interface node.ext.python.interfaces.IProtectedSection

Extends: node.ext.python.interfaces.IPythonNode

Protected section.

text

block contents as text.

lines

List of code lines.