• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IExpressionNode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IExpressionNode的典型用法代码示例。如果您正苦于以下问题:C# IExpressionNode类的具体用法?C# IExpressionNode怎么用?C# IExpressionNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IExpressionNode类属于命名空间,在下文中一共展示了IExpressionNode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnChildNode

        protected override ISqlNode OnChildNode(ISqlNode node)
        {
            if (node is IExpressionNode)
                Password = (IExpressionNode) node;

            return base.OnChildNode(node);
        }
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:SetPasswordNode.cs


示例2: MemberExpressionNode

 public MemberExpressionNode(IExpressionNode target, [NotNull] string member)
     : base(ExpressionNodeType.Member)
 {
     Should.NotBeNull(member, nameof(member));
     _target = target;
     _member = member;
 }
开发者ID:dbeattie71,项目名称:MugenMvvmToolkit,代码行数:7,代码来源:MemberExpressionNode.cs


示例3: ApplyAllNodes

 private QueryModel ApplyAllNodes(IExpressionNode node, ClauseGenerationContext clauseGenerationContext)
 {
     QueryModel queryModel = null;
     if (node.Source != null)
         queryModel = ApplyAllNodes(node.Source, clauseGenerationContext);
     return node.Apply(queryModel, clauseGenerationContext);
 }
开发者ID:Joebeazelman,项目名称:rebelcmsxu5,代码行数:7,代码来源:CustomQueryParser.cs


示例4: Build

        public static SqlExpression Build(IExpressionNode node)
        {
            if (node is SqlVariableRefExpressionNode)
                return VisitVariableRefExpression((SqlVariableRefExpressionNode) node);
            if (node is SqlExpressionTupleNode)
                return VisitTupleExpression((SqlExpressionTupleNode) node);
            if (node is SqlQueryExpressionNode)
                return VisitQueryExpression((SqlQueryExpressionNode) node);
            if (node is SqlCaseExpressionNode)
                return VisitCaseExpression((SqlCaseExpressionNode) node);
            if (node is SqlConstantExpressionNode)
                return VisitConstantExpression((SqlConstantExpressionNode) node);
            if (node is SqlFunctionCallExpressionNode)
                return VisitFunctionCall((SqlFunctionCallExpressionNode) node);
            if (node is SqlReferenceExpressionNode)
                return VisitReferenceExpression((SqlReferenceExpressionNode) node);
            if (node is SqlBinaryExpressionNode)
                return VisitBinaryExpression((SqlBinaryExpressionNode) node);
            if (node is SqlUnaryExpressionNode)
                return VisitUnaryExpression((SqlUnaryExpressionNode) node);
            if (node is SqlBetweenExpressionNode)
                return VisitBetweenExpression((SqlBetweenExpressionNode) node);

            throw new NotSupportedException();
        }
开发者ID:furesoft,项目名称:deveeldb,代码行数:25,代码来源:ExpressionBuilder.cs


示例5: UnaryExressionNode

 public UnaryExressionNode([NotNull] IExpressionNode operand, TokenType token)
     : base(ExpressionNodeType.Unary)
 {
     Should.NotBeNull(operand, "operand");
     _operand = operand;
     _token = token;
 }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:7,代码来源:UnaryExressionNode.cs


示例6: Deserialize

        protected virtual void Deserialize(StringReader reader)
        {
            Children = new IExpressionNode[int.Parse(reader.ReadLine())];

            for (int i = 0; i < Children.Length; i++)
                Children[i] = PExpressionUtility.DeserializeNode(reader);
        }
开发者ID:Magicolo,项目名称:PseudoFramework,代码行数:7,代码来源:ExpressionNodeBase.cs


示例7: BinaryExpressionNode

 /// <summary>
 ///     Initializes a new instance of the <see cref="BinaryExpressionNode" /> class.
 /// </summary>
 public BinaryExpressionNode([NotNull] IExpressionNode left, [NotNull] IExpressionNode right, TokenType token)
     : base(ExpressionNodeType.Binary)
 {
     Should.NotBeNull(left, "left");
     Should.NotBeNull(right, "right");
     _left = left;
     _right = right;
     _token = token;
 }
开发者ID:MuffPotter,项目名称:MugenMvvmToolkit,代码行数:12,代码来源:BinaryExpressionNode.cs


示例8: OnChildNode

        /// <inheritdoc/>
        protected override ISqlNode OnChildNode(ISqlNode node)
        {
            if (node.NodeName == "sql_expression_list") {
                GetGroupExpressions(node);
            } else if (node.NodeName == "having_clause_opt") {
                HavingExpression = node.ChildNodes.FirstOrDefault() as IExpressionNode;
            }

            return base.OnChildNode(node);
        }
开发者ID:prepare,项目名称:deveeldb,代码行数:11,代码来源:GroupByNode.cs


示例9: OnChildNode

        protected override ISqlNode OnChildNode(ISqlNode node)
        {
            if (node.NodeName.Equals("label_opt")) {
                Label = node.FindNode<StringLiteralNode>().Value;
            } else if (node.NodeName.Equals("when_opt")) {
                WhenExpression = node.FindNode<IExpressionNode>();
            }

            return base.OnChildNode(node);
        }
开发者ID:furesoft,项目名称:deveeldb,代码行数:10,代码来源:ContinueStatementNode.cs


示例10: CreateSelectMany

    public static SelectManyExpressionNode CreateSelectMany (IExpressionNode source)
    {
      var p1 = Expression.Parameter (typeof (Cook), "s");
      var p2 = Expression.Parameter (typeof (Kitchen), "sd");
      var resultSelector = Expression.Lambda (Expression.Constant (null), p1, p2);
      var collectionSelector = Expression.Lambda (Expression.Constant (null), p1);

      var parseInfo = new MethodCallExpressionParseInfo ("trans", source, ExpressionHelper.CreateMethodCallExpression<Cook> ());
      return new SelectManyExpressionNode (parseInfo, collectionSelector, resultSelector);
    }
开发者ID:natemcmaster,项目名称:Relinq,代码行数:10,代码来源:ExpressionNodeObjectMother.cs


示例11: ArgumentData

 public ArgumentData(IExpressionNode node, Expression expression, Type type, bool isTypeAccess)
 {
     Should.NotBeNull(node, "node");
     _node = node;
     _expression = expression;
     if (type == null && expression != null)
         type = expression.Type;
     _type = type;
     _isTypeAccess = isTypeAccess;
 }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:10,代码来源:ArgumentData.cs


示例12: OnChildNode

        protected override ISqlNode OnChildNode(ISqlNode node)
        {
            if (node is IdentifierNode) {
                ColumnName = ((IdentifierNode) node).Text;
            } else if (node is IExpressionNode) {
                Expression = (IExpressionNode) node;
            }

            return base.OnChildNode(node);
        }
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:10,代码来源:SetDefaultNode.cs


示例13: SerializeNode

 public static void SerializeNode(IExpressionNode node, StringWriter writer)
 {
     if (node == null)
         writer.WriteLine((int)ExpressionTypes.Null);
     else
     {
         writer.WriteLine((int)node.Type);
         writer.WriteLine(JsonUtility.ToJson(node));
     }
 }
开发者ID:Magicolo,项目名称:PseudoFramework,代码行数:10,代码来源:PExpressionUtility.cs


示例14: GetContextInfo

    public object GetContextInfo (IExpressionNode node)
    {
      ArgumentUtility.CheckNotNull ("node", node);

      object contextInfo;
      if (!_lookup.TryGetValue (node, out contextInfo))
        throw new KeyNotFoundException ("Node has no associated context info.");

      return contextInfo;
    }
开发者ID:GOArango,项目名称:arangoclient.net,代码行数:10,代码来源:ClauseGenerationContext.cs


示例15: LambdaExpressionNode

 public LambdaExpressionNode([NotNull] IExpressionNode expression, [CanBeNull] IEnumerable<string> parameters)
     : base(ExpressionNodeType.Lambda)
 {
     Should.NotBeNull(expression, "expression");
     _expression = expression;
     _parameters = parameters == null
         ? Empty.Array<string>()
         : parameters.ToArray();
     BindingExtensions.CheckDuplicateLambdaParameter(Parameters);
 }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:10,代码来源:LambdaExpressionNode.cs


示例16: OnChildNode

        protected override ISqlNode OnChildNode(ISqlNode node)
        {
            if (node.NodeName.Equals("label_opt")) {
                Label = node.FindNode<IdentifierNode>().Text;
            } else if (node.NodeName.Equals("when_opt")) {
                WhenExpression = node.FindNode<IExpressionNode>();
            }

            return base.OnChildNode(node);
        }
开发者ID:furesoft,项目名称:deveeldb,代码行数:10,代码来源:ExitStatementNode.cs


示例17: Parse

    public IExpressionNode Parse (
        string associatedIdentifier, IExpressionNode source, IEnumerable<Expression> arguments, MethodCallExpression expressionToParse)
    {
      ArgumentUtility.CheckNotNull ("expressionToParse", expressionToParse);

      Type nodeType = GetNodeType (expressionToParse);
      var additionalConstructorParameters = arguments.Select (expr => ProcessArgumentExpression (expr)).ToArray();

      var parseInfo = new MethodCallExpressionParseInfo (associatedIdentifier, source, expressionToParse);
      return CreateExpressionNode (nodeType, parseInfo, additionalConstructorParameters);
    }
开发者ID:GTuritto,项目名称:BrightstarDB,代码行数:11,代码来源:MethodCallExpressionParser.cs


示例18: ConditionExpressionNode

 /// <summary>
 ///     Initializes a new instance of the <see cref="ConditionExpressionNode" /> class.
 /// </summary>
 public ConditionExpressionNode([NotNull] IExpressionNode condition, [NotNull] IExpressionNode ifTrue,
     [NotNull] IExpressionNode ifFalse)
     : base(ExpressionNodeType.Condition)
 {
     Should.NotBeNull(condition, "condition");
     Should.NotBeNull(ifTrue, "ifTrue");
     Should.NotBeNull(ifFalse, "ifFalse");
     _condition = condition;
     _ifTrue = ifTrue;
     _ifFalse = ifFalse;
 }
开发者ID:MuffPotter,项目名称:MugenMvvmToolkit,代码行数:14,代码来源:ConditionExpressionNode.cs


示例19: MethodCallExpressionParseInfo

    public MethodCallExpressionParseInfo (string associatedIdentifier, IExpressionNode source, MethodCallExpression parsedExpression)
        : this()
    {
      ArgumentUtility.CheckNotNullOrEmpty ("associatedIdentifier", associatedIdentifier);
      ArgumentUtility.CheckNotNull ("source", source);
      ArgumentUtility.CheckNotNull ("parsedExpression", parsedExpression);

      AssociatedIdentifier = associatedIdentifier;
      Source = source;
      ParsedExpression = parsedExpression;
    }
开发者ID:GOArango,项目名称:arangoclient.net,代码行数:11,代码来源:IExpressionNodeParseInfo.cs


示例20: OnChildNode

        protected override ISqlNode OnChildNode(ISqlNode node)
        {
            if (node is IExpressionNode) {
                if (VariableReference == null) {
                    VariableReference = (IExpressionNode) node;
                } else {
                    ValueExpression = (IExpressionNode) node;
                }
            }

            return base.OnChildNode(node);
        }
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:12,代码来源:SetVariableStatementNode.cs



注:本文中的IExpressionNode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IExpressionTransformer类代码示例发布时间:2022-05-24
下一篇:
C# IExpressionGraph类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap