OmniSciDB  471d68cefb
 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 361 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 378 of file generate_TableFunctionsFactory_init.py.

379  def __init__(self, type, lexeme):
380  """
381  Parameters
382  ----------
383  type : int
384  One of the tokens in the list above
385  lexeme : str
386  Corresponding string in the text
387  """
388  self.type = type
389  self.lexeme = lexeme

Member Function Documentation

def generate_TableFunctionsFactory_init.Token.__str__ (   self)

Definition at line 411 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Token.lexeme, com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, ConverterCreateParameter.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, foreign_storage::UserMapping.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, omnisci.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, JoinCondition.type, generate_TableFunctionsFactory_init.Declaration.type, omnisci.common.ttypes.TTypeInfo.type, Function::NamedArg.type, generate_TableFunctionsFactory_init.Token.type, omnisci.serialized_result_set.ttypes.TTargetInfo.type, omnisci.serialized_result_set.ttypes.TCountDistinctSet.type, omnisci.thrift.ttypes.TColumnRange.type, omnisci.thrift.ttypes.TRenderDatum.type, and omnisci.thrift.OmniSci.get_db_object_privs_args.type.

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

Definition at line 391 of file generate_TableFunctionsFactory_init.py.

392  def tok_name(cls, token):
393  names = {
394  Token.LESS: "LESS",
395  Token.GREATER: "GREATER",
396  Token.COMMA: "COMMA",
397  Token.EQUAL: "EQUAL",
398  Token.RARROW: "RARROW",
399  Token.STRING: "STRING",
400  Token.NUMBER: "NUMBER",
401  Token.VBAR: "VBAR",
402  Token.BANG: "BANG",
403  Token.LPAR: "LPAR",
404  Token.RPAR: "RPAR",
405  Token.LSQB: "LSQB",
406  Token.RSQB: "RSQB",
407  Token.IDENTIFIER: "IDENTIFIER",
408  Token.COLON: "COLON",
409  }
410  return names.get(token)

Member Data Documentation

generate_TableFunctionsFactory_init.Token.__repr__ = __str__
staticprivate

Definition at line 414 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.BANG = 9
static

Definition at line 370 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COLON = 15
static

Definition at line 376 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COMMA = 3
static

Definition at line 364 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.EQUAL = 4
static

Definition at line 365 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.GREATER = 2
static

Definition at line 363 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.IDENTIFIER = 14
static

Definition at line 375 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LESS = 1
static

Definition at line 362 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.lexeme

Definition at line 388 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Token.__str__().

int generate_TableFunctionsFactory_init.Token.LPAR = 10
static

Definition at line 371 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LSQB = 12
static

Definition at line 373 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.NUMBER = 7
static

Definition at line 368 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RARROW = 5
static

Definition at line 366 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RPAR = 11
static

Definition at line 372 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RSQB = 13
static

Definition at line 374 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.STRING = 6
static

Definition at line 367 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.type

Definition at line 387 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 369 of file generate_TableFunctionsFactory_init.py.


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