object-dspec returns a dspec for object if there is one, or
nil otherwise. When the result dspec is not
nil, it is a dspec as described in Forms of dspecs.
An object has a dspec only when it represents the result of some definition. The most useful cases are functions (of any kind) and methods, because their dspecs can be used to trace and advise them. Classes and packages also have dspecs.
Dspecs can also be useful for finding where the definition of the object originated, either by using dspec functions like find-dspec-locations, which returns the location, or using the editor command
Find Source For Dspec, which edits them. The Common Lisp function
ed also recognizes dspecs and goes to the source.
LispWorks User Guide and Reference Manual - 20 Sep 2017