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

C# IExpressionTransformer类代码示例

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

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



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

示例1: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     if (this._arg != null)
     {
         return new NormalizeUnicodeFunction(transformer.Transform(this._expr), transformer.Transform(this._arg));
     }
     else
     {
         return new NormalizeUnicodeFunction(transformer.Transform(this._expr));
     }
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:16,代码来源:NormalizeUnicodeFunction.cs


示例2: ApplyTransformations

        private static Expression ApplyTransformations(Expression expression)
        {
            var chain = new IExpressionTransformer[]
            {
                new PartialEvaluationTransformer(),
                new VbStringCompareTransformer(),
                new VbConvertInvocationTransformer(),
            };

            Expression result = expression;
            foreach (var transformer in chain)
            {
                expression = transformer.Transform(expression);
            }

            return expression;
        }
开发者ID:jwynia,项目名称:stormpath-sdk-dotnet,代码行数:17,代码来源:QueryModelCompiler.cs


示例3: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new NotEqualsExpression(transformer.Transform(this._leftExpr), transformer.Transform(this._rightExpr));
 }
开发者ID:jbunzel,项目名称:MvcRQ_git,代码行数:9,代码来源:SPARQLExpressionClasses.cs


示例4: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new MultiplicationExpression(transformer.Transform(this._leftExpr), transformer.Transform(this._rightExpr));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:MultiplicationExpression.cs


示例5: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     if (this._optionExpr != null)
     {
         return new RegexFunction(transformer.Transform(this._textExpr), transformer.Transform(this._patternExpr), transformer.Transform(this._optionExpr));
     }
     else
     {
         return new RegexFunction(transformer.Transform(this._textExpr), transformer.Transform(this._patternExpr));
     }
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:16,代码来源:RegexFunction.cs


示例6: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new InFunction(transformer.Transform(this._expr), this._expressions.Select(e => transformer.Transform(e)));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:InFunction.cs


示例7: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new StartsWithFunction(transformer.Transform(this._expr), transformer.Transform(this._arg));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:StartsWithFunction.cs


示例8: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new ConcatFunction(this._exprs.Select(e => transformer.Transform(e)));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:ConcatFunction.cs


示例9: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new XPathStringCast(transformer.Transform(this._expr));
 }
开发者ID:jbunzel,项目名称:MvcRQ_git,代码行数:9,代码来源:XPathCastFunctions.cs


示例10: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new StringJoinFunction(transformer.Transform(this._sep), this._exprs.Select(e => transformer.Transform(e)));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:StringJoinFunction.cs


示例11: Transform

 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new UnknownFunction(this._funcUri, this._args.Select(e => transformer.Transform(e)));
 }
开发者ID:almostEric,项目名称:DotNetRDF-4.0,代码行数:4,代码来源:UnknownFunction.cs


示例12: Transform

 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new IfElseFunction(transformer.Transform(_condition), transformer.Transform(_ifBranch),
                               transformer.Transform(_elseBranch));
 }
开发者ID:almostEric,项目名称:DotNetRDF-4.0,代码行数:5,代码来源:SparqlIfFunction.cs


示例13: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new LeviathanCosecantFunction(transformer.Transform(this._expr), this._inverse);
 }
开发者ID:jbunzel,项目名称:MvcRQ_git,代码行数:9,代码来源:LeviathanTrigonometricFunctions.cs


示例14: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     ISparqlExpression temp = transformer.Transform(new GraphPatternTerm(this._pattern));
     if (temp is GraphPatternTerm)
     {
         return new ExistsFunction(((GraphPatternTerm)temp).Pattern, this._mustExist);
     }
     else
     {
         throw new RdfQueryException("Unable to transform an EXISTS/NOT EXISTS function since the expression transformer in use failed to transform the inner Graph Pattern Expression to another Graph Pattern Expression");
     }
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:17,代码来源:ExistsFunction.cs


示例15: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     if (this._3d)
     {
         return new CartesianFunction(transformer.Transform(this._x1), transformer.Transform(this._y1), transformer.Transform(this._z1), transformer.Transform(this._x2), transformer.Transform(this._y2), transformer.Transform(this._z2));
     }
     else
     {
         return new CartesianFunction(transformer.Transform(this._x1), transformer.Transform(this._y1), transformer.Transform(this._x2), transformer.Transform(this._y2));
     }
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:16,代码来源:CartesianFunctions.cs


示例16: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     if (this._length != null)
     {
         return new SubstringFunction(transformer.Transform(this._expr), transformer.Transform(this._start), transformer.Transform(this._length));
     }
     else
     {
         return new SubstringFunction(transformer.Transform(this._expr), transformer.Transform(this._start));
     }
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:16,代码来源:SubstringFunction.cs


示例17: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new RoundHalfToEvenFunction(transformer.Transform(this._expr));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:RoundHalfToEvenFunction.cs


示例18: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     if (this._log10)
     {
         return new LogFunction(transformer.Transform(this._leftExpr));
     }
     else
     {
         return new LogFunction(transformer.Transform(this._leftExpr), transformer.Transform(this._rightExpr));
     }
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:16,代码来源:LogFunction.cs


示例19: Transform

 /// <summary>
 /// Transforms the Expression using the given Transformer
 /// </summary>
 /// <param name="transformer">Expression Transformer</param>
 /// <returns></returns>
 public override ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return new BooleanCast(transformer.Transform(this._expr));
 }
开发者ID:jmahmud,项目名称:RDFer,代码行数:9,代码来源:BooleanCast.cs


示例20: Transform

 public ISparqlExpression Transform(IExpressionTransformer transformer)
 {
     return _end != null
                ? new ArqSubstringFunction(transformer.Transform(_expr), transformer.Transform(_start),
                                           transformer.Transform(_end))
                : new ArqSubstringFunction(transformer.Transform(_end), transformer.Transform(_start));
 }
开发者ID:almostEric,项目名称:DotNetRDF-4.0,代码行数:7,代码来源:ArqStringFunctions.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IExpressionViewModel类代码示例发布时间:2022-05-24
下一篇:
C# IExpressionNode类代码示例发布时间: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