Package gavo :: Package svcs :: Module vizierexprs :: Class ParseNode
[frames] | no frames]

Class ParseNode

source code

object --+
         |
        ParseNode
Known Subclasses:

is a parse node, consisting of an operator and children.

The parse trees returned by the various parse functions are built from these.

This is an abstract class; concrete derivations need to define a set _standardOperators containing the normal binary operators for their types and a dictionary _sqlEmitters containing functions returning SQL fragments, or override asSQL.

Instance Methods
 
__init__(self, children, operator)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
asSQL(self, field, sqlPars) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, children, operator)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)