NTP Analyzer
0.8.2
Analyze the operation of time servers
|
Public Member Functions | |
void | Add (ISyntaxNode node) |
void | Assemble (ISyntaxNode node) |
T | Compile () |
void | CompileNode () |
IEnumerator< ISyntaxNode > | GetEnumerator () |
void | Resolve (SymbolTable table) |
void | Validate (SymbolTable table) |
Public Attributes | |
ConfigurationNode | CompiledNode => compiledNode |
IEnumerable< string > | Errors => errors |
bool | HasErrors => errors.Count != 0 |
Protected Member Functions | |
SyntaxNode (Symbol symbol, string name, int line, bool requirePath=false) | |
void | AddError (string message) |
void | AddReferenceNameError (ISyntaxNode node, string keyword, string name) |
void | AddReferenceTypeError (ISyntaxNode node, string keyword, string section, string name) |
void | CheckAllIsPresent (IEnumerable< Symbol > list) |
void | CheckIsUnique (IEnumerable< Symbol > list) |
Uri | CheckLink (string link, string keyword) |
void | CheckOneIsPresent (IEnumerable< Symbol > list) |
void | CheckOnlyOneIsPresent (IEnumerable< Symbol > list) |
void | CheckTypeIs< TU > (Symbol symbol) |
void | CheckTypeIs< TU, TV > (Symbol symbol) |
abstract T | InternalCompile () |
virtual void | InternalResolve (SymbolTable table) |
Override to resolve references to other syntax nodes from this syntax node. More... | |
virtual void | ValidateMandatories () |
Override to validates the mandatory types in this syntax node. More... | |
virtual void | ValidateReferences (SymbolTable table) |
Override to validates the references in this syntax node. More... | |
virtual void | ValidateTypes () |
Override to validates the types in this syntax node. More... | |
Properties | |
int | Line [get] |
string | Name [get] |
List< ISyntaxNode > | Nodes [get] |
bool | RequirePath [get] |
Symbol | Symbol [get] |
Properties inherited from Ntp.Analyzer.Config.Syntax.ISyntaxNode | |
ConfigurationNode | CompiledNode [get] |
IEnumerable< string > | Errors [get] |
bool | HasErrors [get] |
int | Line [get] |
bool | RequirePath [get] |
Symbol | Symbol [get] |
Private Member Functions | |
IEnumerator IEnumerable. | GetEnumerator () |
Private Attributes | |
T | compiledNode |
readonly List< string > | errors |
T | : | ConfigurationNode |
Definition at line 33 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 36 of file SyntaxNode.cs.
|
inline |
Implements Ntp.Analyzer.Config.Syntax.ISyntaxNode.
Definition at line 66 of file SyntaxNode.cs.
Referenced by Ntp.Analyzer.Config.Syntax.GraphSetSyntaxNode.InternalCompile(), and Ntp.Analyzer.Config.Compiler.ConfigParser.ParseOption< T >().
|
inlineprotected |
Definition at line 454 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 428 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 441 of file SyntaxNode.cs.
|
inline |
|
inlineprotected |
Definition at line 205 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 340 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 388 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 250 of file SyntaxNode.cs.
|
inlineprotected |
Definition at line 294 of file SyntaxNode.cs.
|
inlineprotected |
TU | : | SettingNode | |
TU | : | new() |
Definition at line 154 of file SyntaxNode.cs.
|
inlineprotected |
TU | : | SettingNode | |
TU | : | new() | |
TV | : | SettingNode | |
TV | : | new() |
Definition at line 178 of file SyntaxNode.cs.
|
inline |
Definition at line 107 of file SyntaxNode.cs.
Referenced by Ntp.Analyzer.Config.Syntax.HostGraphPageSyntaxNode.InternalCompile(), Ntp.Analyzer.Config.Syntax.PeerGraphPageSyntaxNode.InternalCompile(), Ntp.Analyzer.Config.Syntax.PeerSummaryPageSyntaxNode.InternalCompile(), and Ntp.Analyzer.Config.Syntax.HostPageSyntaxNode.InternalCompile().
|
inline |
|
inline |
Definition at line 71 of file SyntaxNode.cs.
|
inlineprivate |
Definition at line 76 of file SyntaxNode.cs.
|
protectedpure virtual |
Implemented in Ntp.Analyzer.Config.Syntax.MenuItemSyntaxNode, Ntp.Analyzer.Config.Syntax.Setting.SettingNode, Ntp.Analyzer.Config.Syntax.GraphSetSyntaxNode, Ntp.Analyzer.Config.Syntax.HostPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerSummaryPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode, Ntp.Analyzer.Config.Syntax.AboutPageSyntaxNode, Ntp.Analyzer.Config.Syntax.HostGraphPageSyntaxNode, Ntp.Analyzer.Config.Syntax.HostSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerGraphPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerPageSyntaxNode, Ntp.Analyzer.Config.Syntax.StatSyntaxNode, Ntp.Analyzer.Config.Syntax.SummariesSyntaxNode, Ntp.Analyzer.Config.Syntax.DatabaseSyntaxNode, Ntp.Analyzer.Config.Syntax.LogSyntaxNode, Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode, Ntp.Analyzer.Config.Syntax.FileDestinationSyntaxNode, Ntp.Analyzer.Config.Syntax.HostGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.ReadingSyntaxNode, Ntp.Analyzer.Config.Syntax.TrafficGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.WebLinkSyntaxNode, Ntp.Analyzer.Config.Syntax.HeartbeatSyntaxNode, Ntp.Analyzer.Config.Syntax.ListenerSyntaxNode, Ntp.Analyzer.Config.Syntax.NotifySyntaxNode, Ntp.Analyzer.Config.Syntax.MenuSyntaxNode, and Ntp.Analyzer.Config.Syntax.RootSyntaxNode.
|
inlineprotectedvirtual |
Override to resolve references to other syntax nodes from this syntax node.
When overriding this method do not call the base method.
table | Table. |
Definition at line 146 of file SyntaxNode.cs.
|
inline |
Implements Ntp.Analyzer.Config.Syntax.ISyntaxNode.
Definition at line 86 of file SyntaxNode.cs.
|
inline |
Implements Ntp.Analyzer.Config.Syntax.ISyntaxNode.
Definition at line 91 of file SyntaxNode.cs.
|
inlineprotectedvirtual |
Override to validates the mandatory types in this syntax node.
When overriding this method do not call the base method.
Reimplemented in Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode, Ntp.Analyzer.Config.Syntax.MenuItemSyntaxNode, Ntp.Analyzer.Config.Syntax.HostSyntaxNode, Ntp.Analyzer.Config.Syntax.TrafficGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.DatabaseSyntaxNode, Ntp.Analyzer.Config.Syntax.GraphSetSyntaxNode, Ntp.Analyzer.Config.Syntax.HostPageSyntaxNode, Ntp.Analyzer.Config.Syntax.StatSyntaxNode, Ntp.Analyzer.Config.Syntax.HostGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.NotifySyntaxNode, Ntp.Analyzer.Config.Syntax.PeerSummaryPageSyntaxNode, Ntp.Analyzer.Config.Syntax.AboutPageSyntaxNode, Ntp.Analyzer.Config.Syntax.HostGraphPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerGraphPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerPageSyntaxNode, Ntp.Analyzer.Config.Syntax.RootSyntaxNode, Ntp.Analyzer.Config.Syntax.LogSyntaxNode, Ntp.Analyzer.Config.Syntax.ReadingSyntaxNode, Ntp.Analyzer.Config.Syntax.SummariesSyntaxNode, Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode, Ntp.Analyzer.Config.Syntax.ListenerSyntaxNode, Ntp.Analyzer.Config.Syntax.FileDestinationSyntaxNode, Ntp.Analyzer.Config.Syntax.WebLinkSyntaxNode, Ntp.Analyzer.Config.Syntax.HeartbeatSyntaxNode, and Ntp.Analyzer.Config.Syntax.MenuSyntaxNode.
Definition at line 128 of file SyntaxNode.cs.
|
inlineprotectedvirtual |
Override to validates the references in this syntax node.
When overriding this method do not call the base method.
table | Table. |
Definition at line 137 of file SyntaxNode.cs.
|
inlineprotectedvirtual |
Override to validates the types in this syntax node.
When overriding this method do not call the base method.
Reimplemented in Ntp.Analyzer.Config.Syntax.NotifySyntaxNode, Ntp.Analyzer.Config.Syntax.MenuItemSyntaxNode, Ntp.Analyzer.Config.Syntax.TrafficGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.DatabaseSyntaxNode, Ntp.Analyzer.Config.Syntax.HostPageSyntaxNode, Ntp.Analyzer.Config.Syntax.StatSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerSummaryPageSyntaxNode, Ntp.Analyzer.Config.Syntax.HostSyntaxNode, Ntp.Analyzer.Config.Syntax.GraphSetSyntaxNode, Ntp.Analyzer.Config.Syntax.HostGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerGraphSyntaxNode, Ntp.Analyzer.Config.Syntax.HostGraphPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerGraphPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PermissionSyntaxNode, Ntp.Analyzer.Config.Syntax.AboutPageSyntaxNode, Ntp.Analyzer.Config.Syntax.PeerPageSyntaxNode, Ntp.Analyzer.Config.Syntax.SummariesSyntaxNode, Ntp.Analyzer.Config.Syntax.LogSyntaxNode, Ntp.Analyzer.Config.Syntax.ReadingSyntaxNode, Ntp.Analyzer.Config.Syntax.ListenerSyntaxNode, Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode, Ntp.Analyzer.Config.Syntax.WebLinkSyntaxNode, Ntp.Analyzer.Config.Syntax.FileDestinationSyntaxNode, and Ntp.Analyzer.Config.Syntax.HeartbeatSyntaxNode.
Definition at line 120 of file SyntaxNode.cs.
|
private |
Definition at line 48 of file SyntaxNode.cs.
ConfigurationNode Ntp.Analyzer.Config.Syntax.SyntaxNode< T >.CompiledNode => compiledNode |
Definition at line 64 of file SyntaxNode.cs.
|
private |
Definition at line 47 of file SyntaxNode.cs.
IEnumerable<string> Ntp.Analyzer.Config.Syntax.SyntaxNode< T >.Errors => errors |
Definition at line 62 of file SyntaxNode.cs.
bool Ntp.Analyzer.Config.Syntax.SyntaxNode< T >.HasErrors => errors.Count != 0 |
Definition at line 60 of file SyntaxNode.cs.
|
get |
Definition at line 58 of file SyntaxNode.cs.
|
getprotected |
Definition at line 52 of file SyntaxNode.cs.
|
getprotected |
Definition at line 50 of file SyntaxNode.cs.
|
get |
Definition at line 56 of file SyntaxNode.cs.
Definition at line 54 of file SyntaxNode.cs.
Referenced by Ntp.Analyzer.Config.Compiler.ConfigParser.ParseMenuItemType().