std.object.element.modifier

field-flags

flags

int-to-modifiers

added in 3.0

(int-to-modifiers int)(int-to-modifiers int method)

converts the modifier integer into human readable represenation

(int-to-modifiers 2r001100) => #{:protected :static}

(int-to-modifiers 128 :field) => #{:transient}

(int-to-modifiers 128 :method) => #{:varargs}

method-flags

modifiers-to-int

added in 3.0

(modifiers-to-int modifiers)

converts the human readable represenation of modifiers into an int

(modifiers-to-int #{:protected :static}) => 12

(modifiers-to-int #{:transient :field}) => 128