Stereocode does not collect anonymous classes. However, since these classes do not have names, they are declared directly as objects. This means they end up being used like variables.
Example:
class {
// Body
} anonymousClass;
srcML:
<class>class <block>{<private type="default">
<comment type="line">// Body</comment>
</private>}</block> <decl><name>anonymousClass</name></decl>;</class>
These objects should be explicitly collected as local or global variables depending on where they are defined.
Not sure if we should also collect and stereotype them as individual classes.