Package gavo :: Package adql :: Module nodes :: Class TableName
[frames] | no frames]

Class TableName

source code

             object --+        
                      |        
utils.autonode.AutoNode --+    
                          |    
                   ADQLNode --+
                              |
                             TableName

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__nonzero__(self) source code
 
__str__(self)
str(x)
source code
 
flatten(self)
returns a string representation of the text content of the tree.
source code
 
lower(self)
returns self's qualified name in lower case.
source code
 
getNormalized(self)
returns self's qualified name lowercased for regular identifiers, in original capitalisation otherwise.
source code
 
__init__(self, cat=None, name=None, schema=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from ADQLNode: __repr__, asTree, getFlattenedChildren, iterTree

Inherited from utils.autonode.AutoNode: change, iterAttributes, iterChildren, iterNodeChildren, iterNodes

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

Class Methods

Inherited from ADQLNode: fromParseResult

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables
  type = 'tableName'
hash(x)
Properties

Inherited from object: __class__

Method Details

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

flatten(self)

source code 

returns a string representation of the text content of the tree.

This default implementation will only work if you returned all parsed elements as children. This, in turn, is something you only want to do if you are sure that the node is question will not be morphed.

Otherwise, override it to create an SQL fragment out of the parsed attributes.

Overrides: ADQLNode.flatten
(inherited documentation)

__init__(self, cat=None, name=None, schema=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)