Class SerdeSourceGenNames
java.lang.Object
io.micronaut.serde.processor.sourcegen.SerdeSourceGenNames
Names of the user declarations that generated serde source refers to.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringEscapes a declared name for the Java and Groovy source writers, which take the name as a JavaPoet format string rather than as an argument of one.static booleanWhether a declared name needsescapeSourceWriterFormat(String).
-
Method Details
-
escapeSourceWriterFormat
Escapes a declared name for the Java and Groovy source writers, which take the name as a JavaPoet format string rather than as an argument of one. A$in a field or method name - legal in Java and used by generated models such as the Kubernetes$refand$schemaproperties - otherwise reads as a placeholder and fails the generation.- Parameters:
name- The declared name- Returns:
- The name as a format string that writes it back verbatim
-
requiresSourceWriterEscape
Whether a declared name needsescapeSourceWriterFormat(String).- Parameters:
name- The declared name- Returns:
- Whether the name carries a format placeholder character
-