NTP Analyzer
0.8.2
Analyze the operation of time servers
|
Public Member Functions | |
Decompiler () | |
Initializes a new instance of the Decompiler class. More... | |
string | Execute () |
Execute the decompiler. More... | |
Properties | |
Configuration | Configuration [get, set] |
Gets or sets the Configuration to decompile. More... | |
char | IndentChar [get, set] |
Gets or sets the indent char. More... | |
int | IndentSize [get, set] |
Gets or sets the size of the indent. More... | |
bool | ShowDefaultValues [get, set] |
Gets or sets a value indicating whether this Decompiler show default values. More... | |
Private Member Functions | |
void | AppendDateTimeKind (DateTimeKind value) |
void | AppendIndent (int size) |
Appends indent to output. More... | |
void | AppendString (string value, Layout layout, int indent) |
Appends the string to output. More... | |
void | DecompileComplexType (int indent, object node) |
Decompiles a complex node type (classes). More... | |
void | DecompileConfiguration (int indent, string typeName, IConfigurationNode node) |
Decompiles a configuration section. More... | |
void | DecompileReference (int indent, object node, PropertyInfo property) |
Decompiles a reference property if applicable. More... | |
bool | DecompileReferenceCollection (int indent, object node, PropertyInfo property) |
Decompiles a property with a collection of references if applicable. More... | |
bool | DecompileSetting (int indent, object node, PropertyInfo property) |
Decompiles a setting property if applicable. More... | |
bool | DecompileSettingCollection (int indent, object node, PropertyInfo property) |
Decompiles a collection property if applicable. More... | |
void | DecompileSimpleType (int indent, string name, object value, object defaultValue, Layout layout) |
Decompiles a simple node type (integers, strings, etc.) More... | |
Private Attributes | |
StringBuilder | builder |
Definition at line 34 of file Decompiler.cs.
|
inline |
Initializes a new instance of the Decompiler class.
Definition at line 39 of file Decompiler.cs.
|
inlineprivate |
Definition at line 83 of file Decompiler.cs.
References Ntp.Analyzer.Config.Table.Keyword.Find(), and Ntp.Analyzer.Config.Table.Keyword.Name.
|
inlineprivate |
Appends indent to output.
size | Indent size. |
Definition at line 104 of file Decompiler.cs.
|
inlineprivate |
Appends the string to output.
value | Value of node. |
layout | Special layout properties. |
indent | Indent count. |
Definition at line 115 of file Decompiler.cs.
|
inlineprivate |
Decompiles a complex node type (classes).
indent | Indent count. |
node | Configuration node to decompile. |
Definition at line 161 of file Decompiler.cs.
|
inlineprivate |
Decompiles a configuration section.
indent | Indent count |
typeName | Name of configuration section. |
node | Configuration node to decompile. |
Definition at line 192 of file Decompiler.cs.
References Ntp.Analyzer.Interface.IConfigurationNode.ConfigName.
|
inlineprivate |
Decompiles a reference property if applicable.
indent | Indent count. |
node | Configuration node to decompile. |
property | Property to decompile. |
Definition at line 245 of file Decompiler.cs.
References Ntp.Analyzer.Interface.IConfigurationNode.ConfigName, and Ntp.Analyzer.Config.Table.Keyword.Find().
|
inlineprivate |
Decompiles a property with a collection of references if applicable.
indent | Indent count. |
node | Configuration node to decompile. |
property | Property to decompile. |
true
if property is a collection of references; otherwise, false
.Definition at line 271 of file Decompiler.cs.
References Ntp.Analyzer.Interface.IConfigurationNode.ConfigName, and Ntp.Analyzer.Config.Table.Keyword.Find().
|
inlineprivate |
Decompiles a setting property if applicable.
indent | Indent count. |
node | Configuration node to decompile. |
property | Property to decompile. |
true
if property is a setting; otherwise, false
.Definition at line 304 of file Decompiler.cs.
References Ntp.Analyzer.Config.Table.Keyword.Find().
|
inlineprivate |
Decompiles a collection property if applicable.
indent | Indent count. |
node | Configuration node to decompile. |
property | Property to decompile. |
true
if property is a collection; otherwise, false
.Definition at line 334 of file Decompiler.cs.
References Ntp.Analyzer.Config.Table.Keyword.Find().
|
inlineprivate |
Decompiles a simple node type (integers, strings, etc.)
indent | Indent count. |
name | The name of the node. |
value | The value of the node. |
defaultValue | Default value for this type. |
layout | Special layout properties. |
Definition at line 392 of file Decompiler.cs.
|
inline |
Execute the decompiler.
Definition at line 76 of file Decompiler.cs.
|
private |
Definition at line 45 of file Decompiler.cs.
|
getset |
Gets or sets the Configuration to decompile.
The configuration.
Definition at line 51 of file Decompiler.cs.
|
getset |
Gets or sets the indent char.
The indent char.
Definition at line 64 of file Decompiler.cs.
Referenced by Ntp.Analyzer.Validate.Cli.Program.SetDecompilerParam().
|
getset |
Gets or sets the size of the indent.
The size of the indent.
Definition at line 70 of file Decompiler.cs.
Referenced by Ntp.Analyzer.Validate.Cli.Program.SetDecompilerParam().
|
getset |
Gets or sets a value indicating whether this Decompiler show default values.
true
if show default values; otherwise, false
.
Definition at line 58 of file Decompiler.cs.