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

Class NumericValueFunction

source code

             object --+                
                      |                
utils.autonode.AutoNode --+            
                          |            
                   ADQLNode --+        
                              |        
                FieldInfoedNode --+    
                                  |    
                       FunctionNode --+
                                      |
                                     NumericValueFunction

A numeric function.

This is really a mixed bag. We work through handlers here. See table in class def. Unknown functions result in dimlesses.

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
addFieldInfo(self, context) source code
 
__init__(self, args=(), funName=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from FunctionNode: flatten

Inherited from FieldInfoedNode: change

Inherited from ADQLNode: __repr__, asTree, getFlattenedChildren, iterTree

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

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

Class Methods

Inherited from ADQLNode: fromParseResult

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables
  type = 'numericValueFunction'
hash(x)
  collapsible = True
  funcDefs = {'ABS': (None, None, 'keepMeta'), 'ACOS': ('rad', '...

Inherited from FieldInfoedNode: fieldInfo

Properties

Inherited from object: __class__

Method Details

addFieldInfo(self, context)

source code 
Overrides: FieldInfoedNode.addFieldInfo

__init__(self, args=(), funName=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Class Variable Details

funcDefs

Value:
{'ABS': (None, None, 'keepMeta'),
 'ACOS': ('rad', '', None),
 'ASIN': ('rad', '', None),
 'ATAN': ('rad', '', None),
 'ATAN2': ('rad', '', None),
 'CEILING': (None, None, 'keepMeta'),
 'DEGREES': ('deg', None, 'keepMeta'),
 'EXP': ('', '', None),
...