Exemplo n.º 1
0
 public void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     ProcToEPL(writer, parentPrecedence, flags);
 }
Exemplo n.º 2
0
 public override void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     inner.ToEPL(writer, parentPrecedence, flags);
 }
Exemplo n.º 3
0
 public void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     writer.Write(GetType().Name);
 }
Exemplo n.º 4
0
 public virtual void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence)
 {
     if (this.Precedence.GetLevel() < parentPrecedence.GetLevel()) {
         writer.Write("(");
         ToPrecedenceFreeEPL(writer);
         writer.Write(")");
     }
     else {
         ToPrecedenceFreeEPL(writer);
     }
 }
Exemplo n.º 5
0
 public virtual void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     if (Precedence.GetLevel() < parentPrecedence.GetLevel()) {
         writer.Write("(");
         ToPrecedenceFreeEPL(writer, flags);
         writer.Write(")");
     }
     else {
         ToPrecedenceFreeEPL(writer, flags);
     }
 }
Exemplo n.º 6
0
        public static int GetLevel(this ExprPrecedenceEnum value)
        {
            switch (value)
            {
            case ExprPrecedenceEnum.UNARY:
                return(11);

            case ExprPrecedenceEnum.MULTIPLY:
                return(10);

            case ExprPrecedenceEnum.ADDITIVE:
                return(9);

            case ExprPrecedenceEnum.CONCAT:
                return(8);

            case ExprPrecedenceEnum.RELATIONAL_BETWEEN_IN:
                return(7);

            case ExprPrecedenceEnum.EQUALS:
                return(6);

            case ExprPrecedenceEnum.NEGATED:
                return(5);

            case ExprPrecedenceEnum.BITWISE:
                return(4);

            case ExprPrecedenceEnum.AND:
                return(3);

            case ExprPrecedenceEnum.OR:
                return(2);

            case ExprPrecedenceEnum.CASE:
                return(1);

            case ExprPrecedenceEnum.MINIMUM:
                return(Int32.MinValue);
            }

            throw new ArgumentException();
        }
Exemplo n.º 7
0
 public void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence)
 {
     writer.Write(GetType().Name);
 }
 public String ToExpressionString(ExprPrecedenceEnum precedence)
 {
     return(null);
 }
Exemplo n.º 9
0
 public void ToEPL(TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     writer.Write(typeof(ExprEvalMethodContext).Name);
 }
Exemplo n.º 10
0
 public void ToEPL(TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     writer.Write("underlying-stream-0");
 }
Exemplo n.º 11
0
 public override void ToEPL(TextWriter writer, ExprPrecedenceEnum parentPrecedence)
 {
     _inner.ToEPL(writer, parentPrecedence);
 }
Exemplo n.º 12
0
 public void ToEPL(TextWriter writer,
                   ExprPrecedenceEnum parentPrecedence,
                   ExprNodeRenderableFlags flags)
 {
     writer.Write(typeof(ExprForgeStreamUnderlying).GetSimpleName());
 }
Exemplo n.º 13
0
 public void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence)
 {
     ProcToEPL(writer, parentPrecedence);
 }
Exemplo n.º 14
0
 public void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence)
 {
     writer.Write("underlying-stream-0");
 }
Exemplo n.º 15
0
 public void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence)
 {
     writer.Write(typeof(ExprEvalMethodContext).Name);
 }