C# Class Tup.Cobar4Net.Parser.Ast.Expression.Primary.Identifier

Inheritance: PrimaryExpression
Mostra file Open project: tupunco/Tup.Cobar4Net Class Usage Examples

Protected Properties

Property Type Description
idText string
idTextUpUnescape string
parent Identifier

Public Methods

Method Description
Accept ( ISqlAstVisitor visitor ) : void
Equals ( object obj ) : bool
GetLevelUnescapeUpName ( int level ) : string
Identifier ( Identifier parent, string idText ) : System
Identifier ( Identifier parent, string idText, string idTextUp ) : System
ToString ( ) : string
TrimParent ( int level, string trimSchema ) : int
UnescapeName ( string name ) : string
UnescapeName ( string name, bool toUppercase ) : string

Private Methods

Method Description
GetHashCode ( ) : int
ObjEquals ( object obj, object obj2 ) : bool

Method Details

Accept() public method

public Accept ( ISqlAstVisitor visitor ) : void
visitor ISqlAstVisitor
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetLevelUnescapeUpName() public method

public GetLevelUnescapeUpName ( int level ) : string
level int
return string

Identifier() public method

public Identifier ( Identifier parent, string idText ) : System
parent Identifier
idText string
return System

Identifier() public method

public Identifier ( Identifier parent, string idText, string idTextUp ) : System
parent Identifier
idText string
idTextUp string
return System

ToString() public method

public ToString ( ) : string
return string

TrimParent() public method

public TrimParent ( int level, string trimSchema ) : int
level int /// At most how many levels left after trim, must be a positive /// integer. e.g. level = 2 for "schema1.tb1.c1", "tb1.c1" is left ///
trimSchema string /// upper-case. Assumed that top trimmed parent is schema, /// if that equals given schema, do not trim ///
return int

UnescapeName() public static method

public static UnescapeName ( string name ) : string
name string
return string

UnescapeName() public static method

public static UnescapeName ( string name, bool toUppercase ) : string
name string
toUppercase bool
return string

Property Details

idText protected_oe property

e.g.
e.g. "id1", "`id1`"
protected string idText
return string

idTextUpUnescape protected_oe property

protected string idTextUpUnescape
return string

parent protected_oe property

null if no parent
protected Identifier,Tup.Cobar4Net.Parser.Ast.Expression.Primary parent
return Identifier