std.object.element.impl.field

+modifiers+

arg-params

added in 3.0

(arg-params ele access)

arguments for getters and setters of fields

(-> (query/query-class String “hash” :#) (field/arg-params :set)) => java.lang.String Integer/TYPE

(-> (query/query-class String “hash” :#) (field/arg-params :get)) => java.lang.String

invoke-instance-field

added in 3.0

(invoke-instance-field ele obj)(invoke-instance-field ele obj val)

invokes the function on the field of an instance

(-> (query/query-class String “hash” :#) (field/invoke-instance-field “123”)) => 48690

invoke-static-field

added in 3.0

(invoke-static-field ele cls)(invoke-static-field ele cls val)

invokes the function on the class static field

(-> (query/query-class String “CASE_INSENSITIVE_ORDER” :#) (field/invoke-static-field String)) => java.lang.String$CaseInsensitiveComparator

patch-field

added in 4.0

(patch-field field)

TODO

throw-arg-exception

macro

added in 3.0

(throw-arg-exception ele args)

helper macro for invoke to throw more readable messages