NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Config.Table.SymbolToken Class Reference
Inheritance diagram for Ntp.Analyzer.Config.Table.SymbolToken:
Collaboration diagram for Ntp.Analyzer.Config.Table.SymbolToken:

Public Member Functions

 SymbolToken (Symbol symbol)
 SymbolToken (Symbol symbol, string text)
override bool Equals (object obj)
override int GetHashCode ()

Public Attributes

override Symbol Symbol => symbol
override TokenType TokenType => TokenType.Symbol
- Public Attributes inherited from Ntp.Analyzer.Config.Table.Token
bool IsText


override string Text [get]
- Properties inherited from Ntp.Analyzer.Config.Table.Token
abstract Symbol Symbol [get]
abstract string Text [get]
abstract TokenType TokenType [get]

Private Attributes

readonly Symbol symbol

Additional Inherited Members

- Static Public Attributes inherited from Ntp.Analyzer.Config.Table.Token
static Token EndOfFile = new SymbolToken(Symbol.EndOfFile)
static Token NewLine = new SymbolToken(Symbol.NewLine, Environment.NewLine)
static Token Undefined = new SymbolToken(Symbol.Undefined)
static Token Whitespace = new SymbolToken(Symbol.WhiteSpace, " ")

Detailed Description

Definition at line 24 of file SymbolToken.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Table.SymbolToken.SymbolToken ( Symbol  symbol)

Definition at line 26 of file SymbolToken.cs.

27  {
28  this.symbol = symbol;
29  Text = string.Empty;
30  }
Ntp.Analyzer.Config.Table.SymbolToken.SymbolToken ( Symbol  symbol,
string  text 

Definition at line 32 of file SymbolToken.cs.

33  : this(symbol)
34  {
35  Text = text;
36  }

Member Function Documentation

override bool Ntp.Analyzer.Config.Table.SymbolToken.Equals ( object  obj)

Definition at line 46 of file SymbolToken.cs.

References Ntp.Analyzer.Config.Table.SymbolToken.symbol.

47  {
48  var other = obj as SymbolToken;
49  return other?.symbol == symbol;
50  }
override int Ntp.Analyzer.Config.Table.SymbolToken.GetHashCode ( )

Definition at line 52 of file SymbolToken.cs.

53  {
54  return symbol.GetHashCode();
55  }

Member Data Documentation

readonly Symbol Ntp.Analyzer.Config.Table.SymbolToken.symbol

Definition at line 38 of file SymbolToken.cs.

Referenced by Ntp.Analyzer.Config.Table.SymbolToken.Equals().

override Symbol Ntp.Analyzer.Config.Table.SymbolToken.Symbol => symbol

Definition at line 42 of file SymbolToken.cs.

override TokenType Ntp.Analyzer.Config.Table.SymbolToken.TokenType => TokenType.Symbol

Definition at line 40 of file SymbolToken.cs.

Property Documentation

override string Ntp.Analyzer.Config.Table.SymbolToken.Text

Definition at line 44 of file SymbolToken.cs.

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