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

Public Member Functions

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

Static Public Member Functions

static Keyword Find (Symbol symbol)
 

Static Public Attributes

static Keyword Content = new Keyword("Content", Symbol.KeywordContent, typeof(string))
 
static Keyword DatabaseProvider = new Keyword("Provider", Symbol.KeywordDatabaseProvider)
 
static Keyword HostType = new Keyword("HostType", Symbol.KeywordHostType)
 
static IEnumerable< KeywordKeywords
 
static Keyword PageTheme = new Keyword("Template", Symbol.KeywordPageTemplate)
 
static Keyword Severity = new Keyword("Severity", Symbol.KeywordSeverity)
 
static Keyword TimeStamp = new Keyword("TimeStamp", Symbol.KeywordTimeStamp)
 
static Keyword Type = new Keyword("Type", Symbol.KeywordType, typeof(string))
 
static Keyword Undefined = new Keyword("Undefined", Symbol.Undefined)
 

Properties

string LowerText [get]
 
string Name [get]
 
Symbol Symbol [get]
 
Type ValueType [get]
 

Private Member Functions

 Keyword (string name, Symbol symbol, Type valueType=null)
 

Detailed Description

Definition at line 28 of file Keyword.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Table.Keyword.Keyword ( string  name,
Symbol  symbol,
Type  valueType = null 
)
inlineprivate

Definition at line 30 of file Keyword.cs.

31  {
32  Name = name;
33  Symbol = symbol;
34  ValueType = valueType;
35  LowerText = name.ToLower();
36  }

Member Function Documentation

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

Definition at line 207 of file Keyword.cs.

References Ntp.Analyzer.Config.Table.Keyword.LowerText.

208  {
209  var other = obj as Keyword;
210  if (other == null)
211  return false;
212 
213  return other.LowerText == LowerText;
214  }
Keyword(string name, Symbol symbol, Type valueType=null)
Definition: Keyword.cs:30
static Keyword Ntp.Analyzer.Config.Table.Keyword.Find ( Symbol  symbol)
inlinestatic

Definition at line 216 of file Keyword.cs.

Referenced by Ntp.Analyzer.Config.Compiler.Decompiler.AppendDateTimeKind(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckAllIsPresent(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckIsUnique(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckLink(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckOneIsPresent(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckOnlyOneIsPresent(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckTypeIs< TU >(), Ntp.Analyzer.Config.Syntax.SyntaxNode< WebLinkCollection >.CheckTypeIs< TU, TV >(), Ntp.Analyzer.Config.Compiler.Decompiler.DecompileReference(), Ntp.Analyzer.Config.Compiler.Decompiler.DecompileReferenceCollection(), Ntp.Analyzer.Config.Compiler.Decompiler.DecompileSetting(), Ntp.Analyzer.Config.Compiler.Decompiler.DecompileSettingCollection(), Ntp.Analyzer.Config.Syntax.SummariesSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.HostGraphPageSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.PeerGraphPageSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.StatSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.GraphSetSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.AboutPageSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.PeerPageSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.PeerSummaryPageSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.HostPageSyntaxNode.ValidateReferences(), Ntp.Analyzer.Config.Syntax.HostSyntaxNode.ValidateReferences(), and Ntp.Analyzer.Config.Syntax.MenuItemSyntaxNode.ValidateReferences().

217  {
218  return Keywords.FirstOrDefault(k => k.Symbol == symbol);
219  }
static IEnumerable< Keyword > Keywords
Definition: Keyword.cs:47

Here is the caller graph for this function:

override int Ntp.Analyzer.Config.Table.Keyword.GetHashCode ( )
inline

Definition at line 221 of file Keyword.cs.

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

222  {
223  return LowerText.GetHashCode();
224  }

Here is the caller graph for this function:

Member Data Documentation

Keyword Ntp.Analyzer.Config.Table.Keyword.Content = new Keyword("Content", Symbol.KeywordContent, typeof(string))
static
Keyword Ntp.Analyzer.Config.Table.Keyword.DatabaseProvider = new Keyword("Provider", Symbol.KeywordDatabaseProvider)
static

Definition at line 39 of file Keyword.cs.

Keyword Ntp.Analyzer.Config.Table.Keyword.HostType = new Keyword("HostType", Symbol.KeywordHostType)
static

Definition at line 43 of file Keyword.cs.

IEnumerable<Keyword> Ntp.Analyzer.Config.Table.Keyword.Keywords
static

Definition at line 47 of file Keyword.cs.

Referenced by Ntp.Analyzer.Config.Compiler.Tokenizer.ParseLiteral().

Keyword Ntp.Analyzer.Config.Table.Keyword.PageTheme = new Keyword("Template", Symbol.KeywordPageTemplate)
static

Definition at line 40 of file Keyword.cs.

Keyword Ntp.Analyzer.Config.Table.Keyword.Severity = new Keyword("Severity", Symbol.KeywordSeverity)
static

Definition at line 42 of file Keyword.cs.

Keyword Ntp.Analyzer.Config.Table.Keyword.TimeStamp = new Keyword("TimeStamp", Symbol.KeywordTimeStamp)
static

Definition at line 41 of file Keyword.cs.

Keyword Ntp.Analyzer.Config.Table.Keyword.Type = new Keyword("Type", Symbol.KeywordType, typeof(string))
static

Definition at line 45 of file Keyword.cs.

Keyword Ntp.Analyzer.Config.Table.Keyword.Undefined = new Keyword("Undefined", Symbol.Undefined)
static

Property Documentation

string Ntp.Analyzer.Config.Table.Keyword.LowerText
get

Definition at line 203 of file Keyword.cs.

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

Symbol Ntp.Analyzer.Config.Table.Keyword.Symbol
get

Definition at line 205 of file Keyword.cs.

Type Ntp.Analyzer.Config.Table.Keyword.ValueType
get

Definition at line 201 of file Keyword.cs.


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