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

Public Member Functions

 KeywordToken (Keyword keyword, string text)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Public Attributes

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

Properties

Keyword Keyword [get]
 
override string Text [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 KeywordToken.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Table.KeywordToken.KeywordToken ( Keyword  keyword,
string  text 
)
inline

Definition at line 26 of file KeywordToken.cs.

27  {
28  Keyword = keyword;
29  Text = text;
30  }

Member Function Documentation

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

Definition at line 40 of file KeywordToken.cs.

References Ntp.Analyzer.Config.Table.KeywordToken.Keyword.

41  {
42  var other = obj as KeywordToken;
43  if (other == null)
44  return false;
45 
46  return other.Keyword == Keyword;
47  }
KeywordToken(Keyword keyword, string text)
Definition: KeywordToken.cs:26
override int Ntp.Analyzer.Config.Table.KeywordToken.GetHashCode ( )
inline

Definition at line 49 of file KeywordToken.cs.

References Ntp.Analyzer.Config.Table.Keyword.GetHashCode().

50  {
51  return Keyword.GetHashCode();
52  }

Here is the call graph for this function:

Member Data Documentation

override Symbol Ntp.Analyzer.Config.Table.KeywordToken.Symbol => Keyword.Symbol

Definition at line 36 of file KeywordToken.cs.

override TokenType Ntp.Analyzer.Config.Table.KeywordToken.TokenType => TokenType.Keyword

Definition at line 34 of file KeywordToken.cs.

Property Documentation

Keyword Ntp.Analyzer.Config.Table.KeywordToken.Keyword
get

Definition at line 32 of file KeywordToken.cs.

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

override string Ntp.Analyzer.Config.Table.KeywordToken.Text
get

Definition at line 38 of file KeywordToken.cs.


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