ClassFieldQ

ClassFieldQ[class, member]
returns True, if the given pattern member represents a field of class. It is only needed for assignments of fields using the Dot operator.
This loads the package.
In[1]:=
Click for copyable input
We start with the definition of a class that contains a field and a method.
In[2]:=
Click for copyable input
The field is recognized, while the checks on the method and its name yield False.
In[3]:=
Click for copyable input
Out[3]=
Out[3]=
Out[3]=
Out[3]=