File Exchange

image thumbnail

checkClass - inspect a Java/Matlab/COM class object/name

version 1.23 (23.9 KB) by

checks a Java/MCOS/COM object or classname and displays its methods, enumerations & interfaces

5 Downloads

Updated

View License

checkClass inspects the specified Java or Matlab (MCOS) object reference or class-name, and reports its superclass(es), new/modified methods, interfaces, enumerations, sub-classes and annotations.
This utility complements the more detailed UIINSPECT utility (see link below) by being Command-Prompt based and also by highlighting the object components that were modified in the inspected class compared to its parent superclass.

Syntax:
checkClass(className)
checkClass(objectReference)
checkClass(...,level) % default level=inf

Examples:
checkClass('java.lang.String')
checkClass(javax.swing.JButton)
jButton=javax.swing.JButton('Click me!');
jButton.checkClass;
checkClass(com.mathworks.mwswing.MJToolBar)
checkClass(com.mathworks.mde.desk.MLDesktop.getInstance)
checkClass(gcf)
checkClass('matlab.ui.Figure')

Technical description:
http://UndocumentedMatlab.com/blog/checkclass

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

Comments and Ratings (5)

Thanks now the new version is available. This tool is very useful and much better than the methodsview function provided by Matlab. Very useful for analyzing Matlab classes especially if you have a class hierarchy.

Yair Altman

Yair Altman (view profile)

@Martin - I just updated the download file

The download able version is only 1.19 and identical to that version. Please check the actual version.

Ariel Vaknin

Jonathan

Fun tool for investigating MATLAB internals.

Updates

1.23

attribution of whereisjavaclassloadingfrom created by Andrew Janke

1.22.1

fixed the downloadable file

1.22

added display of class origin information; fixed report for some .Net classes that are reported as A*B*C; fixed some edge cases

1.19

fixed java annotations

1.7

handle missing/string input; handle MCOS objects

1.6

fixed edge case

1.5

enabled checking Matlab-wrapped (javahandle_withcallbacks) handles; displayed function return values & qualifiers; fixed dot-notation internal classes; fixed a few edge-case bugs; added hyperlinks to user-generated subclasses (myclass$subclass)

1.4

fixed problem when directly specifying requested superclass level; fixed static fields value display; fixed minor bug with non-derived class

1.2

linked to checkClass (not uiinspect); fixed some edge cases; displayed superclass for non-Matlab classes; displayed class modifiers

1.1

displayed static field values; fixed minor bug; displayed missing/extra constructors

MATLAB Release
MATLAB 7.6 (R2008a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today