java.lang.Object
org.apache.jena.arq.querybuilder.rewriters.BuildElementVisitor
All Implemented Interfaces:
org.apache.jena.sparql.syntax.ElementVisitor

public class BuildElementVisitor extends Object implements org.apache.jena.sparql.syntax.ElementVisitor
An element visitor that does an in-place modification of the elements to fix union-of-one and similar issues.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.syntax.Element
     
    void
    setResult(org.apache.jena.sparql.syntax.Element result)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementAssign el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementBind el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementData el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementDataset el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementExists el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementFilter el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementGroup el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementLateral el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementMinus el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementNamedGraph el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementNotExists el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementOptional el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementPathBlock el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementService el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementSubQuery el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementTriplesBlock el)
     
    void
    visit(org.apache.jena.sparql.syntax.ElementUnion el)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BuildElementVisitor

      public BuildElementVisitor()
  • Method Details

    • getResult

      public org.apache.jena.sparql.syntax.Element getResult()
    • setResult

      public void setResult(org.apache.jena.sparql.syntax.Element result)
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementTriplesBlock el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementPathBlock el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementFilter el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementAssign el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementBind el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementData el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementUnion el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementLateral el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementOptional el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementGroup el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementDataset el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementNamedGraph el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementExists el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementNotExists el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementMinus el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementService el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementSubQuery el)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor