- 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 Summary
Modifier and TypeMethodDescriptionstatic Renderer
Provides the default renderer.static Renderer
getRenderer
(Configuration configuration) Creates a new renderer for the given configuration.static <T extends Renderer>
TgetRenderer
(Configuration configuration, Class<T> type) Creates a new renderer for the given configuration.Renders a statement.
-
Method Details
-
render
Renders a statement.- Parameters:
statement
- the statement to render- Returns:
- The rendered Cypher statement.
-
getDefaultRenderer
Provides the default renderer. This method may or may not provide shared instances of the renderer.- Returns:
- The default renderer.
-
getRenderer
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
Creates a new renderer for the given configuration.- Type Parameters:
T
- The specific type of the renderer- Parameters:
configuration
- The configuration for this renderertype
- Reification of the renderers type- Returns:
- A new renderer (might be a shared instance).
- Since:
- 2023.1.0
-