示例#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));
 }
示例#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));
 }
示例#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;
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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;
 }
示例#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)
 {
 }