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

Public Member Functions

 LiteralToken (string text)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Public Attributes

override Symbol Symbol => Symbol.Undefined
 
override string Text => text
 
override TokenType TokenType => TokenType.Literal
 
- Public Attributes inherited from Ntp.Analyzer.Config.Table.Token
bool IsText
 

Private Attributes

readonly string text
 

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, " ")
 
- Properties inherited from Ntp.Analyzer.Config.Table.Token
abstract Symbol Symbol [get]
 
abstract string Text [get]
 
abstract TokenType TokenType [get]
 

Detailed Description

Definition at line 24 of file LiteralToken.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Table.LiteralToken.LiteralToken ( string  text)
inline

Definition at line 26 of file LiteralToken.cs.

27  {
28  this.text = text;
29  }

Member Function Documentation

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

Definition at line 39 of file LiteralToken.cs.

References Ntp.Analyzer.Config.Table.LiteralToken.text.

40  {
41  var other = obj as LiteralToken;
42  if (other == null)
43  return false;
44 
45  return other.text == text;
46  }
override int Ntp.Analyzer.Config.Table.LiteralToken.GetHashCode ( )
inline

Definition at line 48 of file LiteralToken.cs.

49  {
50  return text.GetHashCode();
51  }

Member Data Documentation

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

Definition at line 35 of file LiteralToken.cs.

readonly string Ntp.Analyzer.Config.Table.LiteralToken.text
private

Definition at line 31 of file LiteralToken.cs.

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

override string Ntp.Analyzer.Config.Table.LiteralToken.Text => text

Definition at line 37 of file LiteralToken.cs.

override TokenType Ntp.Analyzer.Config.Table.LiteralToken.TokenType => TokenType.Literal

Definition at line 33 of file LiteralToken.cs.


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