C# Class Tup.Cobar4Net.Parser.Recognizer.Mysql.Syntax.MySqlExprParser

Inheritance: MySqlParser
Datei anzeigen Open project: tupunco/Tup.Cobar4Net Class Usage Examples

Public Methods

Method Description
Expression ( ) : IExpression

first token of this expression has been scanned, not yet consumed

MySqlExprParser ( MySqlLexer lexer ) : System
MySqlExprParser ( MySqlLexer lexer, MySqlFunctionManager functionManager, bool cacheEvalRst, string charset ) : System
MySqlExprParser ( MySqlLexer lexer, string charset ) : System
SetSelectParser ( MySqlDmlSelectParser selectParser ) : void

Private Methods

Method Description
AnyAllExpression ( ) : IExpression
ArithmeticFactorOperatorExpression ( string consumed, string consumedUp ) : IExpression

higherExpr ( ('*'|'/'|'%'|'DIV'|'MOD') higherExpr)+

ArithmeticTermOperatorExpression ( string consumed, string consumedUp ) : IExpression

higherExpr ( ('+'|'-') higherExpr)+

BitAndExpression ( string consumed, string consumedUp ) : IExpression
BitOrExpression ( string consumed, string consumedUp ) : IExpression
BitShiftExpression ( string consumed, string consumedUp ) : IExpression

higherExpr ( ('<<'|'>>') higherExpr)+

BitXORExpression ( string consumed, string consumedUp ) : IExpression

higherExpr ('^' higherExpr)+

CaseWhenExpression ( ) : IExpression

first CASE has been consumed

CollateExpression ( string consumed, string consumedUp ) : IExpression
ComparisionExpression ( ) : IExpression

BETWEEN ...

BETWEEN ... AND has lower precedence than other comparison operator

ConstructTypePair ( string typeName, IExpression exp1, IExpression exp2 ) : Pair>
ExpressionList ( IList exprList ) : IList

first '(' has been consumed.

first '(' has been consumed. At least one element. Consume last ')' after invocation
'(' expr (',' expr)* ')'

Extract ( ) : Extract

first '(' has been consumed

FunctionChar ( ) : Char

first '(' has been consumed

FunctionConvert ( ) : Convert

first '(' has been consumed

IntervalExpression ( ) : IExpression

first INTERVAL has been consumed

IntervalPrimaryUnit ( ) : Unit
LogicalAndExpression ( ) : IExpression

higherPRJExpr ( ('AND'|'&&') higherPRJExpr )*

LogicalNotExpression ( ) : IExpression

'NOT'* higherPRJExpr

LogicalOrExpression ( ) : IExpression

higherPRJExpr ( ( '||' | 'OR' ) higherPRJExpr )*

LogicalXORExpression ( ) : IExpression

higherPRJExpr ( 'XOR' higherPRJExpr )*

MatchExpression ( ) : IExpression

first MATCH has been consumed

OrdinaryFunction ( string id, string idUpper ) : FunctionExpression

id has been consumed.

id has been consumed. id must be a function name. current token must be MySqlToken.PuncLeftParen

PrimaryExpression ( string consumed, string consumedUp ) : IExpression
RightOprandOfIn ( ) : IExpression
StartedFromIdentifier ( string consumed, string consumedUp ) : IExpression

last token consumed is MySqlToken.Identifier , MUST NOT be null

SubQuery ( ) : IQueryExpression

first token is MySqlToken.KwSelect

Timestampadd ( ) : Timestampadd

first '(' has been consumed

Timestampdiff ( ) : Timestampdiff

first '(' has been consumed

Type4specialFunc ( ) : Pair>
UnaryOpExpression ( string consumed, string consumedUp ) : IExpression

('+'|'-'|'~'|'!'|'BINARY')* higherExpr
'!' has higher precedence

UserExpression ( string consumed, string consumedUp ) : IExpression

Method Details

Expression() public method

first token of this expression has been scanned, not yet consumed
public Expression ( ) : IExpression
return IExpression

MySqlExprParser() public method

public MySqlExprParser ( MySqlLexer lexer ) : System
lexer Tup.Cobar4Net.Parser.Recognizer.Mysql.Lexer.MySqlLexer
return System

MySqlExprParser() public method

public MySqlExprParser ( MySqlLexer lexer, MySqlFunctionManager functionManager, bool cacheEvalRst, string charset ) : System
lexer Tup.Cobar4Net.Parser.Recognizer.Mysql.Lexer.MySqlLexer
functionManager MySqlFunctionManager
cacheEvalRst bool
charset string
return System

MySqlExprParser() public method

public MySqlExprParser ( MySqlLexer lexer, string charset ) : System
lexer Tup.Cobar4Net.Parser.Recognizer.Mysql.Lexer.MySqlLexer
charset string
return System

SetSelectParser() public method

public SetSelectParser ( MySqlDmlSelectParser selectParser ) : void
selectParser MySqlDmlSelectParser
return void