Class ExprTransformConcatMergeConstants

java.lang.Object
org.apache.jena.sparql.expr.ExprTransformCopy
org.aksw.jena_sparql_api.algebra.expr.transform.ExprTransformConcatMergeConstants
All Implemented Interfaces:
org.apache.jena.sparql.expr.ExprTransform

public class ExprTransformConcatMergeConstants extends org.apache.jena.sparql.expr.ExprTransformCopy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Predicate<? super org.apache.jena.sparql.expr.Expr>
     

    Fields inherited from class org.apache.jena.sparql.expr.ExprTransformCopy

    COPY_ALWAYS, COPY_ONLY_ON_CHANGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExprTransformConcatMergeConstants(Predicate<? super org.apache.jena.sparql.expr.Expr> isConcatFunction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<org.apache.jena.sparql.expr.Expr>
    mergeConsecutiveConstants(Iterable<org.apache.jena.sparql.expr.Expr> exprs)
    Merges arguments that are constants together Used for concat: concat("a", "b", "c") becomes concat("abc");
    org.apache.jena.sparql.expr.Expr
    transform(org.apache.jena.sparql.expr.ExprFunctionN func, org.apache.jena.sparql.expr.ExprList args)
     

    Methods inherited from class org.apache.jena.sparql.expr.ExprTransformCopy

    transform, transform, transform, transform, transform, transform, transform, transform, transform

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.sparql.expr.ExprTransform

    transform
  • Field Details

    • isConcatFunction

      protected Predicate<? super org.apache.jena.sparql.expr.Expr> isConcatFunction
  • Constructor Details

    • ExprTransformConcatMergeConstants

      public ExprTransformConcatMergeConstants(Predicate<? super org.apache.jena.sparql.expr.Expr> isConcatFunction)
  • Method Details

    • transform

      public org.apache.jena.sparql.expr.Expr transform(org.apache.jena.sparql.expr.ExprFunctionN func, org.apache.jena.sparql.expr.ExprList args)
      Specified by:
      transform in interface org.apache.jena.sparql.expr.ExprTransform
      Overrides:
      transform in class org.apache.jena.sparql.expr.ExprTransformCopy
    • mergeConsecutiveConstants

      public static List<org.apache.jena.sparql.expr.Expr> mergeConsecutiveConstants(Iterable<org.apache.jena.sparql.expr.Expr> exprs)
      Merges arguments that are constants together Used for concat: concat("a", "b", "c") becomes concat("abc");
      Parameters:
      concat -
      Returns: