ClassFieldSlot

ClassFieldSlot[class, pattern]
returns the slot position of pattern within the definitions of class. Superclasses are not scanned.
ClassFieldSlot[object, pattern]
does the same for object.