com.hp.hpl.jena.sparql.algebra.optimize
Class ExprTransformConstantFold

java.lang.Object
  extended by com.hp.hpl.jena.sparql.expr.ExprTransformCopy
      extended by com.hp.hpl.jena.sparql.algebra.optimize.ExprTransformConstantFold
All Implemented Interfaces:
ExprTransform

public class ExprTransformConstantFold
extends ExprTransformCopy

An expression transform that simplifies expressions by constant folding wherever possible


Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.expr.ExprTransformCopy
COPY_ALWAYS, COPY_ONLY_ON_CHANGE
 
Constructor Summary
ExprTransformConstantFold()
           
 
Method Summary
 Expr transform(ExprFunction1 func, Expr expr1)
           
 Expr transform(ExprFunction2 func, Expr expr1, Expr expr2)
           
 Expr transform(ExprFunction3 func, Expr expr1, Expr expr2, Expr expr3)
           
 Expr transform(ExprFunctionN func, ExprList args)
           
 Expr transform(ExprFunctionOp funcOp, ExprList args, Op opArg)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.expr.ExprTransformCopy
transform, transform, transform, transform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprTransformConstantFold

public ExprTransformConstantFold()
Method Detail

transform

public Expr transform(ExprFunction1 func,
                      Expr expr1)
Specified by:
transform in interface ExprTransform
Overrides:
transform in class ExprTransformCopy

transform

public Expr transform(ExprFunction2 func,
                      Expr expr1,
                      Expr expr2)
Specified by:
transform in interface ExprTransform
Overrides:
transform in class ExprTransformCopy

transform

public Expr transform(ExprFunction3 func,
                      Expr expr1,
                      Expr expr2,
                      Expr expr3)
Specified by:
transform in interface ExprTransform
Overrides:
transform in class ExprTransformCopy

transform

public Expr transform(ExprFunctionN func,
                      ExprList args)
Specified by:
transform in interface ExprTransform
Overrides:
transform in class ExprTransformCopy

transform

public Expr transform(ExprFunctionOp funcOp,
                      ExprList args,
                      Op opArg)
Specified by:
transform in interface ExprTransform
Overrides:
transform in class ExprTransformCopy


Licenced under the Apache License, Version 2.0