本文整理汇总了C#中IExpressionTransformer.Transform方法的典型用法代码示例。如果您正苦于以下问题:C# IExpressionTransformer.Transform方法的具体用法?C# IExpressionTransformer.Transform怎么用?C# IExpressionTransformer.Transform使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IExpressionTransformer
的用法示例。
在下文中一共展示了IExpressionTransformer.Transform方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
}
示例2: Transform
public override ISparqlExpression Transform(IExpressionTransformer transformer)
{
return new LeviathanMD5HashFunction(transformer.Transform(this._expr));
}
示例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 MultiplicationExpression(transformer.Transform(this._leftExpr), transformer.Transform(this._rightExpr));
}
示例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 SubstringAfterFunction(transformer.Transform(this._expr), transformer.Transform(this._arg));
}
示例5: 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 LangFunction(transformer.Transform(this._expr));
}
示例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 BooleanCast(transformer.Transform(this._expr));
}
示例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 RoundHalfToEvenFunction(transformer.Transform(this._expr));
}
示例8: 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));
}
}
示例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 LeviathanCosecantFunction(transformer.Transform(this._expr), this._inverse);
}
示例10: 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");
}
}
示例11: 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));
}
示例12: 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 StrBeforeFunction(transformer.Transform(this._stringExpr), transformer.Transform(this._startsExpr));
}
示例13: Transform
public override ISparqlExpression Transform(IExpressionTransformer transformer)
{
return new BitAndFunc(transformer.Transform(_leftExpr), transformer.Transform(_rightExpr));
}
示例14: 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 XPathAbsoluteFunction(transformer.Transform(this._expr));
}
示例15: 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 SecondsFromDateTimeFunction(transformer.Transform(this._expr));
}