OmniSciDB  a987f07e93
 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 404 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 421 of file generate_TableFunctionsFactory_init.py.

422  def __init__(self, type, lexeme):
423  """
424  Parameters
425  ----------
426  type : int
427  One of the tokens in the list above
428  lexeme : str
429  Corresponding string in the text
430  """
431  self.type = type
432  self.lexeme = lexeme

Member Function Documentation

def generate_TableFunctionsFactory_init.Token.__str__ (   self)

Definition at line 454 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.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.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.

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

Definition at line 434 of file generate_TableFunctionsFactory_init.py.

435  def tok_name(cls, token):
436  names = {
437  Token.LESS: "LESS",
438  Token.GREATER: "GREATER",
439  Token.COMMA: "COMMA",
440  Token.EQUAL: "EQUAL",
441  Token.RARROW: "RARROW",
442  Token.STRING: "STRING",
443  Token.NUMBER: "NUMBER",
444  Token.VBAR: "VBAR",
445  Token.BANG: "BANG",
446  Token.LPAR: "LPAR",
447  Token.RPAR: "RPAR",
448  Token.LSQB: "LSQB",
449  Token.RSQB: "RSQB",
450  Token.IDENTIFIER: "IDENTIFIER",
451  Token.COLON: "COLON",
452  }
453  return names.get(token)

Member Data Documentation

generate_TableFunctionsFactory_init.Token.__repr__ = __str__
staticprivate

Definition at line 457 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.BANG = 9
static

Definition at line 413 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COLON = 15
static

Definition at line 419 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COMMA = 3
static

Definition at line 407 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.EQUAL = 4
static

Definition at line 408 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.GREATER = 2
static

Definition at line 406 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.IDENTIFIER = 14
static

Definition at line 418 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LESS = 1
static

Definition at line 405 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.lexeme

Definition at line 431 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Token.__str__().

int generate_TableFunctionsFactory_init.Token.LPAR = 10
static

Definition at line 414 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LSQB = 12
static

Definition at line 416 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.NUMBER = 7
static

Definition at line 411 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RARROW = 5
static

Definition at line 409 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RPAR = 11
static

Definition at line 415 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RSQB = 13
static

Definition at line 417 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.STRING = 6
static

Definition at line 410 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.type

Definition at line 430 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.PrimitiveNode.is_array_text_encoding_dict(), generate_TableFunctionsFactory_init.TypeNode.is_column(), 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 412 of file generate_TableFunctionsFactory_init.py.


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