Click or drag to resize

Module Class

DOM object that corresponds to a single source of text, like file, string, stream etc. Modules that belong to the same CompileUnit must have different names.
Inheritance Hierarchy

Namespace:  Syntactik.DOM
Assembly:  Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
Syntax
C#
public class Module : Pair

The Module type exposes the following members.

Constructors
  NameDescription
Public methodModule
Creates an instance of Module.
Top
Properties
  NameDescription
Public propertyAssignment
Gets or sets a value of pair assignment.
(Inherited from Pair.)
Public propertyFileName
Path to the module file.
Public propertyIndentMultiplicity
Number of indent symbol needed to form a single indent.
Public propertyIndentSymbol
Symbol used for indent (space or tab).
Public propertyMembers
Collection of Document and AliasDefinition.
Public propertyModuleDocument
Document of module is implicitly declared by added Entity as module child.
Public propertyName
Name of the pair.
(Inherited from Pair.)
Public propertyNamespaceDefinitions
Collection of NamespaceDefinition.
Public propertyPairValue
Pair value of the pair. Use method AppendChild(Pair) to set value of this property.
(Inherited from Pair.)
Public propertyParent
Parent of the pair.
(Inherited from Pair.)
Public propertyValue
Literal value of the pair.
(Inherited from Pair.)
Top
Methods
  NameDescription
Public methodAccept
Method is a part of the visitor pattern implementation.
(Overrides PairAccept(IDomVisitor).)
Protected methodAddEntity
Adds entity to the ModuleDocument.
Public methodAppendChild
Adds another pair as a child. If pair has "pair assignment" := then the method initializes property PairValue.
(Overrides PairAppendChild(Pair).)
Protected methodCreateModuleDocument
Creates an empty ModuleDocument.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasValue
If true then the pair has either literal value or pair value.
(Inherited from Pair.)
Public methodInitializeParent
This method is called when the pair is added as child to another pair.
(Inherited from Pair.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also