Interface Renderer

All Known Subinterfaces:
GeneralizedRenderer

@API(status=STABLE, since="1.0") public sealed interface Renderer permits GeneralizedRenderer (not exhaustive)
Instances of this class are supposed to be thread-safe. Please use getDefaultRenderer() to get hold of an implementation.
Since:
1.0
Author:
Michael J. Simons
  • Method Details

    • render

      String render(Statement statement)
      Renders a statement.
      Parameters:
      statement - the statement to render
      Returns:
      The rendered Cypher statement.
    • getDefaultRenderer

      static Renderer getDefaultRenderer()
      Provides the default renderer. This method may or may not provide shared instances of the renderer.
      Returns:
      The default renderer.
    • getRenderer

      static Renderer getRenderer(Configuration configuration)
      Creates a new renderer for the given configuration.
      Parameters:
      configuration - The configuration for this renderer
      Returns:
      A new renderer (might be a shared instance).
    • getRenderer

      static <T extends Renderer> T getRenderer(Configuration configuration, Class<T> type)
      Creates a new renderer for the given configuration.
      Type Parameters:
      T - The specific type of the renderer
      Parameters:
      configuration - The configuration for this renderer
      type - Reification of the renderers type
      Returns:
      A new renderer (might be a shared instance).
      Since:
      2023.1.0