java.lang.Object
org.neo4j.cypherdsl.core.renderer.Configuration
This class provides some configuration settings for the Cypher-DSL, mainly around rendering of a statement. Instances
of
Configuration are threadsafe and can be reused. Please use the associated builder
via newConfig() to create new variants.- Since:
- 2021.0.1
- Author:
- Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUse this builder to create newConfigurationinstances.static enumEnum for configuring name rewriting.static enumEnum for the available indent styles. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationCypher is not pretty printed by default.booleanintReturns the indentation style.inthashCode()booleanbooleanbooleanstatic Configuration.BuilderReturns a new builder.static ConfigurationPretty printing with default indentation settings.toString()
-
Method Details
-
defaultConfig
Cypher is not pretty printed by default. No indentation settings apply.- Returns:
- the default config
-
prettyPrinting
Pretty printing with default indentation settings.- Returns:
- a configuration enabling pretty printing.
-
newConfig
Returns a new builder. for creating a new configuration from scratch- Returns:
- a new builder
-
isPrettyPrint
public boolean isPrettyPrint()- Returns:
- true if this configuration uses pretty printing
-
getIndentStyle
Returns the indentation style. whether to use tabs or spaces to indent things- Returns:
- the indentation style
-
getIndentSize
public int getIndentSize()- Returns:
- width of one indentation
-
isAlwaysEscapeNames
public boolean isAlwaysEscapeNames()- Returns:
- true when names should be always escaped
-
getGeneratedNames
- Returns:
- The set of object types for which generated names should be used
- Since:
- 2023.2.0
-
isUseGeneratedNames
public boolean isUseGeneratedNames()- Returns:
- true when symbolic and parameter names should be replaced with generated names
- Since:
- 2023.2.0
-
getDialect
- Returns:
- the target dialect
-
equals
-
hashCode
public int hashCode() -
toString
-