OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_TableFunctionsFactory_init.Token Class Reference

Public Member Functions

def __init__
 
def tok_name
 
def __str__
 

Public Attributes

 type
 
 lexeme
 

Static Public Attributes

int LESS = 1
 
int GREATER = 2
 
int COMMA = 3
 
int EQUAL = 4
 
int RARROW = 5
 
int STRING = 6
 
int NUMBER = 7
 
int VBAR = 8
 
int BANG = 9
 
int LPAR = 10
 
int RPAR = 11
 
int LSQB = 12
 
int RSQB = 13
 
int IDENTIFIER = 14
 
int COLON = 15
 

Static Private Attributes

 __repr__ = __str__
 

Detailed Description

Definition at line 392 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

def generate_TableFunctionsFactory_init.Token.__init__ (   self,
  type,
  lexeme 
)
Parameters
----------
type : int
  One of the tokens in the list above
lexeme : str
  Corresponding string in the text

Definition at line 409 of file generate_TableFunctionsFactory_init.py.

410  def __init__(self, type, lexeme):
411  """
412  Parameters
413  ----------
414  type : int
415  One of the tokens in the list above
416  lexeme : str
417  Corresponding string in the text
418  """
419  self.type = type
420  self.lexeme = lexeme

Member Function Documentation

def generate_TableFunctionsFactory_init.Token.__str__ (   self)

Definition at line 442 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Token.lexeme, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, generate_TableFunctionsFactory_init.Declaration.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, generate_TableFunctionsFactory_init.Token.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

443  def __str__(self):
444  return 'Token(%s, "%s")' % (Token.tok_name(self.type), self.lexeme)
def generate_TableFunctionsFactory_init.Token.tok_name (   cls,
  token 
)

Definition at line 422 of file generate_TableFunctionsFactory_init.py.

423  def tok_name(cls, token):
424  names = {
425  Token.LESS: "LESS",
426  Token.GREATER: "GREATER",
427  Token.COMMA: "COMMA",
428  Token.EQUAL: "EQUAL",
429  Token.RARROW: "RARROW",
430  Token.STRING: "STRING",
431  Token.NUMBER: "NUMBER",
432  Token.VBAR: "VBAR",
433  Token.BANG: "BANG",
434  Token.LPAR: "LPAR",
435  Token.RPAR: "RPAR",
436  Token.LSQB: "LSQB",
437  Token.RSQB: "RSQB",
438  Token.IDENTIFIER: "IDENTIFIER",
439  Token.COLON: "COLON",
440  }
441  return names.get(token)

Member Data Documentation

generate_TableFunctionsFactory_init.Token.__repr__ = __str__
staticprivate

Definition at line 445 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.BANG = 9
static

Definition at line 401 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COLON = 15
static

Definition at line 407 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COMMA = 3
static

Definition at line 395 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.EQUAL = 4
static

Definition at line 396 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.GREATER = 2
static

Definition at line 394 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.IDENTIFIER = 14
static

Definition at line 406 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LESS = 1
static

Definition at line 393 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.lexeme

Definition at line 419 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Token.__str__().

int generate_TableFunctionsFactory_init.Token.LPAR = 10
static

Definition at line 402 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LSQB = 12
static

Definition at line 404 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.NUMBER = 7
static

Definition at line 399 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RARROW = 5
static

Definition at line 397 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RPAR = 11
static

Definition at line 403 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RSQB = 13
static

Definition at line 405 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.STRING = 6
static

Definition at line 398 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.type

Definition at line 418 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.Token.__str__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.ComposedNode.__str__(), generate_TableFunctionsFactory_init.TypeNode.is_column_list(), generate_TableFunctionsFactory_init.TypeNode.is_cursor(), generate_TableFunctionsFactory_init.TypeNode.is_output_buffer_sizer(), and generate_TableFunctionsFactory_init.PrimitiveNode.is_text_encoding_dict().

int generate_TableFunctionsFactory_init.Token.VBAR = 8
static

Definition at line 400 of file generate_TableFunctionsFactory_init.py.


The documentation for this class was generated from the following file: