C# Class Ancestry.QueryProcessor.Parse.LexerToken

Afficher le fichier Open project: Ancestry/DotQL Class Usage Examples

Méthodes publiques

Свойство Type Description
Error System.Exception
Line int
LinePos int
Token string
Type TokenType

Méthodes publiques

Méthode Description
CheckSymbol ( string symbol ) : void

Ensures that the current TokenType is a symbol equal to the given symbol.

Will raise a LexerException if it is not.

CheckType ( TokenType token ) : void

Ensures that the current TokenType is of the given type.

Will raise a LexerException if it is not.

DebugCheckSymbol ( string symbol ) : void
DebugCheckType ( TokenType token ) : void
IsSymbol ( string symbol ) : bool

Return true if the token's type is Symbol it matches the given symbol.

Method Details

CheckSymbol() public méthode

Ensures that the current TokenType is a symbol equal to the given symbol.
Will raise a LexerException if it is not.
public CheckSymbol ( string symbol ) : void
symbol string
Résultat void

CheckType() public méthode

Ensures that the current TokenType is of the given type.
Will raise a LexerException if it is not.
public CheckType ( TokenType token ) : void
token TokenType
Résultat void

DebugCheckSymbol() public méthode

public DebugCheckSymbol ( string symbol ) : void
symbol string
Résultat void

DebugCheckType() public méthode

public DebugCheckType ( TokenType token ) : void
token TokenType
Résultat void

IsSymbol() public méthode

Return true if the token's type is Symbol it matches the given symbol.
public IsSymbol ( string symbol ) : bool
symbol string
Résultat bool

Property Details

Error public_oe property

public Exception,System Error
Résultat System.Exception

Line public_oe property

public int Line
Résultat int

LinePos public_oe property

public int LinePos
Résultat int

Token public_oe property

public string Token
Résultat string

Type public_oe property

public TokenType Type
Résultat TokenType