Module org.apache.jena.arq
Class ElementTransformer
java.lang.Object
org.apache.jena.sparql.syntax.syntaxtransform.ElementTransformer
A bottom-up application of a transformation of SPARQL syntax Elements.
QueryTransformOps.transform(org.apache.jena.query.Query, java.util.Map<org.apache.jena.sparql.core.Var, ? extends org.apache.jena.graph.Node>) provides the mechanism
to apply to a Query.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementTransformerget()Get the current transformerstatic voidset(ElementTransformer value) Set the current transformer - use with carestatic Elementtransform(Element element, ElementTransform transform) Transform an algebra expressionstatic Elementtransform(Element element, ElementTransform transform, ExprTransform exprTransform) Transformation with specific ElementTransform and ExprTransformstatic Elementtransform(Element element, ElementTransform transform, ExprTransform exprTransform, ElementVisitor beforeVisitor, ElementVisitor afterVisitor)
-
Method Details
-
get
Get the current transformer -
set
Set the current transformer - use with care -
transform
Transform an algebra expression -
transform
public static Element transform(Element element, ElementTransform transform, ExprTransform exprTransform) Transformation with specific ElementTransform and ExprTransform -
transform
public static Element transform(Element element, ElementTransform transform, ExprTransform exprTransform, ElementVisitor beforeVisitor, ElementVisitor afterVisitor)
-