本文整理汇总了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;未经允许,请勿转载。 |
请发表评论