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

Public Member Functions

 NumericToken (double value)
override bool Equals (object obj)
override int GetHashCode ()

Public Attributes

override Symbol Symbol => Symbol.Undefined
override string Text => Value.ToString(CultureInfo.InvariantCulture)
override TokenType TokenType => TokenType.NumericValue
- Public Attributes inherited from Ntp.Analyzer.Config.Table.Token
bool IsText


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

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 26 of file NumericToken.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Table.NumericToken.NumericToken ( double  value)

Definition at line 28 of file NumericToken.cs.

29  {
30  Value = value;
31  }

Member Function Documentation

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

Definition at line 41 of file NumericToken.cs.

References Ntp.Analyzer.Config.Table.NumericToken.Value.

42  {
43  var other = obj as NumericToken;
44  return other?.Value == Value;
45  }
override int Ntp.Analyzer.Config.Table.NumericToken.GetHashCode ( )

Definition at line 47 of file NumericToken.cs.

48  {
49  return Value.GetHashCode();
50  }

Member Data Documentation

override Symbol Ntp.Analyzer.Config.Table.NumericToken.Symbol => Symbol.Undefined

Definition at line 35 of file NumericToken.cs.

override string Ntp.Analyzer.Config.Table.NumericToken.Text => Value.ToString(CultureInfo.InvariantCulture)

Definition at line 37 of file NumericToken.cs.

override TokenType Ntp.Analyzer.Config.Table.NumericToken.TokenType => TokenType.NumericValue

Property Documentation

double Ntp.Analyzer.Config.Table.NumericToken.Value

Definition at line 39 of file NumericToken.cs.

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

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