Esempio n. 1
0
        /// <summary>
        /// Print.
        /// </summary>
        /// <param name="writer">to print to</param>
        /// <param name="scripts">scripts</param>
        /// <param name="formatter">for newline-whitespace formatting</param>
        public static void ToEPL(
            TextWriter writer,
            IList<ScriptExpression> scripts,
            EPStatementFormatter formatter)
        {
            if ((scripts == null) || (scripts.IsEmpty()))
            {
                return;
            }

            foreach (ScriptExpression part in scripts)
            {
                if (part.Name == null)
                {
                    continue;
                }

                formatter.BeginExpressionDecl(writer);
                part.ToEPL(writer);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Print.
        /// </summary>
        /// <param name="writer">to print to</param>
        /// <param name="expressionDeclarations">expression declarations</param>
        /// <param name="formatter">for newline-whitespace formatting</param>
        public static void ToEPL(
            TextWriter writer,
            IList <ExpressionDeclaration> expressionDeclarations,
            EPStatementFormatter formatter)
        {
            if ((expressionDeclarations == null) || (expressionDeclarations.IsEmpty()))
            {
                return;
            }

            foreach (var part in expressionDeclarations)
            {
                if (part.Name == null)
                {
                    continue;
                }

                formatter.BeginExpressionDecl(writer);
                part.ToEPL(writer);
            }
        }