struct

Noir::TreeSitterJavaParameterExtractor::FieldInfo

Inherits Struct < Value < Object

Constructors

new(name : String, access_modifier : String, has_setter : Bool, init_value : String, json_name : String | Nil = nil, type_name : String = "", unwrap : Tuple(Nil | String, Nil | String) | Nil = nil, json_ignored : Bool = false)
Source

Instance methods

access_modifier
Source
has_setter?
Source
init_value
Source
json_ignored?

Jackson @JsonIgnore on the field or one of its accessors: a JSON body never binds it. Form/query binding (WebDataBinder) ignores Jackson annotations, so it still binds there.

Source
json_name

Wire name in a JSON body: @JsonProperty("display_name"), else name (or its @JsonNaming translation).

Source
json_name=(json_name : String)

Wire name in a JSON body: @JsonProperty("display_name"), else name (or its @JsonNaming translation).

Source
json_name_fixed=(json_name_fixed : Bool)

The JSON key is settled by @JsonProperty or the class @JsonNaming; the module-wide Jackson default leaves it alone.

Source
json_name_fixed?

The JSON key is settled by @JsonProperty or the class @JsonNaming; the module-wide Jackson default leaves it alone.

Source
json_root

The declaring class's @JsonRootName: the key the body is wrapped in under UNWRAP_ROOT_VALUE.

Source
json_root=(json_root : String | Nil)

The declaring class's @JsonRootName: the key the body is wrapped in under UNWRAP_ROOT_VALUE.

Source
name
Source
name_for(format : String) : String

Jackson renames apply to JSON bodies only; form/query binding goes through Spring's WebDataBinder, which uses the Java name.

Source
type_name

Declared Java type as written (Pager, MultipartFile[]), "" when unknown.

Source
unwrap

Jackson @JsonUnwrapped(prefix, suffix): the field has no key of its own, its type's properties sit inline in the parent object. TreeSitterJavaDtoIndex replaces such a field with those properties. A nil affix was written as something other than a string literal.

Source