JsonGenerator Class |
Namespace: Syntactik.Compiler.Generator
public class JsonGenerator : AliasResolvingVisitor
The JsonGenerator type exposes the following members.
Name | Description | |
---|---|---|
![]() | JsonGenerator |
This constructor should be used if output depends on the name of the document.
|
Name | Description | |
---|---|---|
![]() | AliasContext |
Keeps track of nested aliases.
(Inherited from AliasResolvingVisitor.) |
![]() | Context |
Provides access to CompilerContext.
(Inherited from AliasResolvingVisitor.) |
![]() | CurrentDocument |
Property is used to keep track of current visiting Document.
(Inherited from AliasResolvingVisitor.) |
![]() | ScopeContext |
Keeps track of nested namespace scopes.
(Inherited from AliasResolvingVisitor.) |
Name | Description | |
---|---|---|
![]() | CheckBlockStartForAlias |
Starts array if the value alias is first item in the array
|
![]() | EnterChoiceContainer |
Tries to resolve a pair as a choice.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnPair |
Method is wrapping call to Accept method of every node.
(Inherited from SyntactikDepthFirstVisitor.) |
![]() | OnValue |
Method called when the value of the current pair is resolved.
(Overrides AliasResolvingVisitorOnValue(String, ValueType).) |
![]() | ResolveAttributes |
Go through all entities and resolve attributes for the current node.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveAttributesInAlias |
Resolves attributes in Alias. Elements are ignored.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveAttributesInParameter |
Resolves attributes in Parameter. Elements are ignored.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveChoiceValue |
Method is called for pair with literal choice assignment =::.
(Overrides AliasResolvingVisitorResolveChoiceValue(Pair, ValueType).) |
![]() | ResolveDqsEscape |
Resolves escape sequence
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveDqsEscapeChar |
Converts EscapeMatch to Char.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolvePairValue |
Resolves literal value of the pair.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveValue |
Resolves literal value of the Pair.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveValueAlias |
Resolves literal value of Alias.
(Inherited from AliasResolvingVisitor.) |
![]() | ResolveValueParameter |
Resolves value of the value parameter.
(Inherited from AliasResolvingVisitor.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Visit(Alias) |
Visit method for Alias.
(Overrides AliasResolvingVisitorVisit(Alias).) |
![]() | Visit(AliasDefinition) |
Visit method for AliasDefinition.
(Inherited from AliasResolvingVisitor.) |
![]() | Visit(Argument) |
Visit method for Argument.
(Inherited from SyntactikDepthFirstVisitor.) |
![]() | Visit(Attribute) |
Visit method for Attribute.
(Overrides SyntactikDepthFirstVisitorVisit(Attribute).) |
![]() | Visit(Comment) |
Visit method for Comment.
(Inherited from SyntactikDepthFirstVisitor.) |
![]() | Visit(CompileUnit) |
Visit method for CompileUnit.
(Inherited from SyntactikDepthFirstVisitor.) |
![]() | Visit(Document) |
Visit method for Document.
(Overrides SyntactikDepthFirstVisitorVisit(Document).) |
![]() | Visit(Element) |
Visit method for Element.
(Overrides AliasResolvingVisitorVisit(Element).) |
![]() | Visit(Module) |
Visit method for Module.
(Overrides SyntactikDepthFirstVisitorVisit(Module).) |
![]() | Visit(NamespaceDefinition) |
Visit method for NamespaceDefinition.
(Inherited from SyntactikDepthFirstVisitor.) |
![]() | Visit(Pair) |
Asks visitor to visit a pair.
(Inherited from SyntactikDepthFirstVisitor.) |
![]() | Visit(Parameter) |
Visit method for Parameter.
(Inherited from AliasResolvingVisitor.) |
![]() | Visit(Scope) |
Visit method for Scope.
(Inherited from AliasResolvingVisitor.) |
![]() | VisitT(IEnumerableT) |
Asks visitor to visit each pair in collection.
(Inherited from SyntactikDepthFirstVisitor.) |
Name | Description | |
---|---|---|
![]() | BlockIsStarting |
If true then the current block state (object/array) is not defined.
|
![]() | BlockState |
Stack storing states of blocks.
|
![]() | ChoiceStack |
Stack of ChoiceInfo.
|
![]() | JsonWriter |
JsonWriter is used to generate JSON text.
|
![]() | NamespaceResolver |
Provides access to services of NamespaceResolver.
(Inherited from AliasResolvingVisitor.) |
![]() | WriterDelegate |
Delegate is called to create JsonWriter for each Document.
|