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

Public Member Functions

 IntegerToken (int value)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Public Attributes

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

Properties

int 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 24 of file IntegerToken.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Table.IntegerToken.IntegerToken ( int  value)
inline

Definition at line 26 of file IntegerToken.cs.

27  {
28  Value = value;
29  }

Member Function Documentation

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

Definition at line 39 of file IntegerToken.cs.

References Ntp.Analyzer.Config.Table.IntegerToken.Value.

40  {
41  var other = obj as IntegerToken;
42  return other?.Value == Value;
43  }
override int Ntp.Analyzer.Config.Table.IntegerToken.GetHashCode ( )
inline

Definition at line 45 of file IntegerToken.cs.

46  {
47  return Value.GetHashCode();
48  }

Member Data Documentation

override Symbol Ntp.Analyzer.Config.Table.IntegerToken.Symbol => Symbol.Undefined
override string Ntp.Analyzer.Config.Table.IntegerToken.Text => Value.ToString()
override TokenType Ntp.Analyzer.Config.Table.IntegerToken.TokenType => TokenType.IntegerValue

Property Documentation

int Ntp.Analyzer.Config.Table.IntegerToken.Value
get

Definition at line 37 of file IntegerToken.cs.

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


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