Exemplo n.º 1
0
 /// <summary>
 /// Create the IGenerator instance corresponding to the given ID.
 /// </summary>
 /// <param name="ID">The Unique ID of the Generator instance to be created</param>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 /// <returns>The IGenerator instance if one has been created, null otherwise.</returns>
 public IGenerator Create(string ID, TypeCobol.Compiler.CompilationDocument document, System.IO.TextWriter destination, List <Skeletons.Skeleton> skeletons)
 {
     if (!RegistryMap.ContainsKey(ID))
     {
         return(null);
     }
     return(RegistryMap[ID](ID, document, destination, skeletons));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create the IGenerator instance corresponding to the given ID.
 /// </summary>
 /// <param name="ID">The Unique ID of the Generator instance to be created</param>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 /// <returns>The IGenerator instance if one has been created, null otherwise.</returns>
 public IGenerator Create(string ID, TypeCobol.Compiler.CompilationDocument document, StringBuilder destination, List <Skeletons.Skeleton> skeletons, string typeCobolVersion)
 {
     if (!RegistryMap.ContainsKey(ID))
     {
         return(null);
     }
     return(RegistryMap[ID](ID, document, destination, skeletons, typeCobolVersion));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 public Generator(TypeCobol.Compiler.CompilationDocument document, TextWriter destination, List <Skeleton> skeletons)
 {
     this.CompilationResults = document;
     Destination             = destination;
     Actions = new GeneratorActions(skeletons, document);
     //To Store Erased Nodes by the Erase Action.
     ErasedNodes = new List <Node>();
     //The After Action Listener
     Actions.AfterAction += OnAfterAction;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 public TypeCobolGenerator(TypeCobol.Compiler.CompilationDocument document, StringBuilder destination, List <Skeleton> skeletons, string typeCobolVersion)
     : base(document, destination, skeletons, typeCobolVersion)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 public DefaultGenerator(TypeCobol.Compiler.CompilationDocument document, TextWriter destination, List <Skeleton> skeletons, string typeCobolVersion)
     : base(document, destination, skeletons, typeCobolVersion)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 public DefaultGenerator(TypeCobol.Compiler.CompilationDocument document, StringBuilder destination, List <Skeleton> skeletons, string typeCobolVersion)
     : base(document, destination, skeletons, null)
 {
     TypeCobolVersion = typeCobolVersion;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="Document"> The compilation document </param>
 /// <param name="destination">The Output stream for the generated code</param>
 /// <param name="skeletons">All skeletons pattern for code generation </param>
 public TypeCobolGenerator(TypeCobol.Compiler.CompilationDocument document, TextWriter destination, List <Skeleton> skeletons)
     : base(document, destination, skeletons)
 {
 }