Noir::TreeSitterKotlinParameterExtractor::FieldInfo
Constructors
Instance methods
True when init_value came from a string_literal node and was
therefore already decoded (quotes stripped) on the way in.
Wire name in a JSON body: @JsonProperty("display_name"), else
name (or its @JsonNaming translation).
Wire name in a JSON body: @JsonProperty("display_name"), else
name (or its @JsonNaming translation).
The JSON key is settled by @JsonProperty or the class @JsonNaming;
the module-wide Jackson default leaves it alone.
The JSON key is settled by @JsonProperty or the class @JsonNaming;
the module-wide Jackson default leaves it alone.
The declaring class's @JsonRootName: the key the body is wrapped
in under UNWRAP_ROOT_VALUE.
The declaring class's @JsonRootName: the key the body is wrapped
in under UNWRAP_ROOT_VALUE.
The request-ready value of this field's initializer, or "" when the initializer is an expression with no literal form.
init_value cannot be handed to Noir::JvmLiteral.value_of directly,
because Kotlin's collector stores mixed shapes: a string_literal is
decoded (= "untitled" -> untitled) while every other initializer
keeps its raw source (= LocalDateTime.now()). A decoded string is
indistinguishable from a bare identifier once stored, so running the
literal check over it erased every string default in a Kotlin DTO.
The flag is what tells the two apart. Java's collector keeps raw text
throughout, which is why its call site passes init_value straight in.