Exemplo n.º 1
0
 public ExprDotEvalVariable(ExprDotNode dotNode, VariableReader variableReader, ExprDotStaticMethodWrap resultWrapLambda, ExprDotEval[] chainEval)
 {
     _dotNode          = dotNode;
     _variableReader   = variableReader;
     _resultWrapLambda = resultWrapLambda;
     _chainEval        = chainEval;
 }
Exemplo n.º 2
0
 public ExprDotEvalRootChild(bool hasEnumerationMethod, ExprDotNode dotNode, ExprEvaluator rootNodeEvaluator, ExprEvaluatorEnumeration rootLambdaEvaluator, EPType typeInfo, ExprDotEval[] evalIteratorEventBean, ExprDotEval[] evalUnpacking, bool checkedUnpackEvent)
 {
     _dotNode = dotNode;
     if (rootLambdaEvaluator != null)
     {
         if (typeInfo is EventMultiValuedEPType)
         {
             _innerEvaluator = new InnerEvaluatorEnumerableEventCollection(
                 rootLambdaEvaluator, ((EventMultiValuedEPType)typeInfo).Component);
         }
         else if (typeInfo is EventEPType)
         {
             _innerEvaluator = new InnerEvaluatorEnumerableEventBean(
                 rootLambdaEvaluator, ((EventEPType)typeInfo).EventType);
         }
         else
         {
             _innerEvaluator = new InnerEvaluatorEnumerableScalarCollection(
                 rootLambdaEvaluator, ((ClassMultiValuedEPType)typeInfo).Component);
         }
     }
     else
     {
         if (checkedUnpackEvent)
         {
             _innerEvaluator = new InnerEvaluatorScalarUnpackEvent(rootNodeEvaluator);
         }
         else
         {
             var returnType = rootNodeEvaluator.ReturnType;
             if (hasEnumerationMethod && returnType.IsArray)
             {
                 if (returnType.GetElementType().IsPrimitive)
                 {
                     _innerEvaluator = new InnerEvaluatorArrPrimitiveToColl(rootNodeEvaluator);
                 }
                 else
                 {
                     _innerEvaluator = new InnerEvaluatorArrObjectToColl(rootNodeEvaluator);
                 }
             }
             else if (hasEnumerationMethod && TypeHelper.IsImplementsInterface(returnType, typeof(ICollection <EventBean>)))
             {
                 _innerEvaluator = new InnerEvaluatorColl(rootNodeEvaluator);
             }
             else
             {
                 _innerEvaluator = new InnerEvaluatorScalar(rootNodeEvaluator);
             }
         }
     }
     _evalUnpacking         = evalUnpacking;
     _evalIteratorEventBean = evalIteratorEventBean;
 }
Exemplo n.º 3
0
 public ExprDotEvalStreamEventBean(ExprDotNode exprDotNode, int streamNumber, ExprDotEval[] evaluators)
 {
     _exprDotNode  = exprDotNode;
     _streamNumber = streamNumber;
     _evaluators   = evaluators;
 }
Exemplo n.º 4
0
 public ExprDotEvalStreamMethod(ExprDotNode dotNode, int streamNumber, ExprDotEval[] evaluators)
 {
     _dotNode      = dotNode;
     _streamNumber = streamNumber;
     _evaluators   = evaluators;
 }