Interface ITemplateObjectVisitor<TContext>
Basic interface for implementing a CloudFormation object graph visitor. The visitor provides a context implementation. A visitor context must as minimum implement the ITemplateObjectVisitorContext<TContext> which provides basic traversal methods.
Namespace: Firefly.CloudFormationParser.TemplateObjects.Traversal
Assembly: Firefly.CloudFormationParser.dll
Syntax
public interface ITemplateObjectVisitor<in TContext>
where TContext : ITemplateObjectVisitorContext<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The type of the context. |
Properties
| Improve this Doc View SourceTemplate
Gets a reference to the current parsed template.
This is needed when visiting child objects of a IBranchableIntrinsic such that the appropriate sub-properties of the intrinsic are visited according to the prevailing conditions.
Declaration
ITemplate Template { get; }
Property Value
Type | Description |
---|---|
ITemplate | The template. |
Methods
| Improve this Doc View SourceDoAccept(Object, TContext)
Dispatches the Accept calls added as extension methods to the types of objects encountered in the deserialized YAML object graph.
Declaration
void DoAccept(object objectInGraph, TContext context)
Parameters
Type | Name | Description |
---|---|---|
Object | objectInGraph | The object. |
TContext | context | The context. |