org.eclipse.rdf4j.queryrender.sparql

## Class SparqlTupleExprRenderer

- java.lang.Object
- - org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor<Exception>
  - - org.eclipse.rdf4j.queryrender.BaseTupleExprRenderer
    - - org.eclipse.rdf4j.queryrender.sparql.SparqlTupleExprRenderer

- All Implemented Interfaces:
    QueryModelVisitor<Exception>

      public final class SparqlTupleExprRenderer
      extends BaseTupleExprRenderer

  Extends the BaseTupleExprRenderer to provide support for rendering tuple expressions as SPARQL queries.

  Author:
    Michael Grove

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.rdf4j.queryrender.BaseTupleExprRenderer

      `mDistinct, mExtensions, mLimit, mOffset, mOrdering, mProjection, mReduced`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SparqlTupleExprRenderer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `meet(Difference theOp)`
    `void` | `meet(Filter theFilter)`
    `void` | `meet(Intersection theOp)`
    `void` | `meet(Join theJoin)`
    `void` | `meet(LeftJoin theJoin)`
    `void` | `meet(StatementPattern thePattern)`
    `void` | `meet(Union theOp)`
    `String` | `render(TupleExpr theExpr)` Render the TupleExpr as a query or query fragment depending on what kind of TupleExpr it is
    `protected String` | `renderValueExpr(ValueExpr theExpr)` Render the given ValueExpr
    `void` | `reset()` Reset the state of the renderer

    - ### Methods inherited from class org.eclipse.rdf4j.queryrender.BaseTupleExprRenderer

      `getExtensions, getLimit, getOffset, getOrdering, getProjection, isDistinct, isReduced, isSelect, isSPOElemList, meet, meet, meet, meet, meet, meet, render, scrubVarName, toStatementPattern`

    - ### Methods inherited from class org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor

      `meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meetBinaryTupleOperator, meetBinaryValueOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetNode, meetOther, meetSubQueryValueOperator, meetUnaryTupleOperator, meetUnaryValueOperator, meetUpdateExpr`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### SparqlTupleExprRenderer

          public SparqlTupleExprRenderer()

  - ### Method Detail

    - #### reset

          public void reset()

      Description copied from class: `BaseTupleExprRenderer`
      Reset the state of the renderer
      Overrides:
        `reset` in class `BaseTupleExprRenderer`

    - #### render

          public String render(TupleExpr theExpr)
                        throws Exception

      Description copied from class: `BaseTupleExprRenderer`
      Render the TupleExpr as a query or query fragment depending on what kind of TupleExpr it is
      Specified by:
        `render` in class `BaseTupleExprRenderer`
      Parameters:
        `theExpr` - the expression to render
      Returns:
        the TupleExpr rendered in the serql syntax
      Throws:
        `Exception` - if there is an error while rendering

    - #### renderValueExpr

          protected String renderValueExpr(ValueExpr theExpr)
                                    throws Exception

      Description copied from class: `BaseTupleExprRenderer`
      Render the given ValueExpr
      Specified by:
        `renderValueExpr` in class `BaseTupleExprRenderer`
      Parameters:
        `theExpr` - the expr to render
      Returns:
        the rendered expression
      Throws:
        `Exception` - if there is an error while rendering

    - #### meet

          public void meet(Join theJoin)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `AbstractQueryModelVisitor<Exception>`
      Throws:
        `Exception`

    - #### meet

          public void meet(LeftJoin theJoin)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `AbstractQueryModelVisitor<Exception>`
      Throws:
        `Exception`

    - #### meet

          public void meet(Union theOp)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `AbstractQueryModelVisitor<Exception>`
      Throws:
        `Exception`

    - #### meet

          public void meet(Difference theOp)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `AbstractQueryModelVisitor<Exception>`
      Throws:
        `Exception`

    - #### meet

          public void meet(Intersection theOp)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `AbstractQueryModelVisitor<Exception>`
      Throws:
        `Exception`

    - #### meet

          public void meet(Filter theFilter)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `AbstractQueryModelVisitor<Exception>`
      Throws:
        `Exception`

    - #### meet

          public void meet(StatementPattern thePattern)
                    throws Exception

      Specified by:
        `meet` in interface `QueryModelVisitor<Exception>`
      Overrides:
        `meet` in class `BaseTupleExprRenderer`
      Throws:
        `Exception`

Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.