ClassTemplates

ClassTemplates[class, start]
returns a list, each entry representing a member of class, where modifiers and attributes are stripped off the member pattern. An optional parameter start specifies the first letter(s) of the member's name.
ClassTemplates[List]
tries to build a list depending on the cursor position or selection in the currently selected notebook.
ClassTemplates[Information]
lists what to include in the list.
ClassTemplates[Information] = None
switches off the template generation by means of the menu command Make Template (Shift+Ctrl+K).
  • If ClassTemplates fails to build the list, for example if class has attributes ReadProtected and Locked, the list contains a hint that it could not be created correctly.
  • The exact format may be subject to change in future versions.
This loads the package.
In[1]:=
Click for copyable input
We first define a class to be read out below.
In[2]:=
Click for copyable input
Information on the class is easily obtained. Please observe that the format may be subject to change. Usually, it is only used as a server for the menu command Make Template (Shift+Ctrl+K).
In[3]:=
Click for copyable input
Out[3]//TableForm=
Restricting the list to members starting with m is shown next.
In[4]:=
Click for copyable input
Out[4]//TableForm=
If the filter is too restrictive, a hint is inserted into the list.
In[5]:=
Click for copyable input
Out[5]//TableForm=