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

Public Member Functions

 DirDestinationSyntaxNode (string name, int line)
 
- Public Member Functions inherited from Ntp.Analyzer.Config.Syntax.SyntaxNode< DirectoryCollection >
void Add (ISyntaxNode node)
 
void Assemble (ISyntaxNode node)
 
Compile ()
 
void CompileNode ()
 
IEnumerator< ISyntaxNodeGetEnumerator ()
 
void Resolve (SymbolTable table)
 
void Validate (SymbolTable table)
 

Protected Member Functions

override DirectoryCollection InternalCompile ()
 
override void ValidateMandatories ()
 Override to validates the mandatory types in this syntax node. More...
 
override void ValidateTypes ()
 Override to validates the types in this syntax node. More...
 
- Protected Member Functions inherited from Ntp.Analyzer.Config.Syntax.SyntaxNode< DirectoryCollection >
 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)
 
virtual void InternalResolve (SymbolTable table)
 Override to resolve references to other syntax nodes from this syntax node. More...
 
virtual void ValidateReferences (SymbolTable table)
 Override to validates the references in this syntax node. More...
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Config.Syntax.SyntaxNode< DirectoryCollection >
ConfigurationNode CompiledNode
 
IEnumerable< string > Errors
 
bool HasErrors
 
- Properties inherited from Ntp.Analyzer.Config.Syntax.SyntaxNode< DirectoryCollection >
int Line [get]
 
string Name [get]
 
List< ISyntaxNodeNodes [get]
 
bool RequirePath [get]
 
Symbol Symbol [get]
 

Detailed Description

Definition at line 31 of file DirDestinationSyntaxNode.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode.DirDestinationSyntaxNode ( string  name,
int  line 
)
inline

Definition at line 33 of file DirDestinationSyntaxNode.cs.

References Ntp.Analyzer.Config.Table.KeywordDestinations.

34  : base(Symbol.KeywordDestinations, name, line)
35  {
36  }

Member Function Documentation

override DirectoryCollection Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode.InternalCompile ( )
inlineprotectedvirtual
override void Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode.ValidateMandatories ( )
inlineprotectedvirtual

Override to validates the mandatory types in this syntax node.

When overriding this method do not call the base method.

Reimplemented from Ntp.Analyzer.Config.Syntax.SyntaxNode< DirectoryCollection >.

Definition at line 47 of file DirDestinationSyntaxNode.cs.

48  {
49  CheckIsUnique(new List<Symbol> {Symbol.KeywordPrefix});
50  CheckAllIsPresent(new List<Symbol> {Symbol.KeywordDirectory});
51  }
override void Ntp.Analyzer.Config.Syntax.DirDestinationSyntaxNode.ValidateTypes ( )
inlineprotectedvirtual

Override to validates the types in this syntax node.

When overriding this method do not call the base method.

Reimplemented from Ntp.Analyzer.Config.Syntax.SyntaxNode< DirectoryCollection >.

Definition at line 53 of file DirDestinationSyntaxNode.cs.

54  {
55  CheckTypeIs<StringSettingNode>(Symbol.KeywordPrefix);
56  CheckTypeIs<StringSettingNode>(Symbol.KeywordDirectory);
57  }

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