File Exchange

image thumbnail

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

version 1.27.0.0 (69.4 KB) by Yair Altman
inspect a Java/MCOS/COM/.NET object or classname and display its methods, properties, events, interfaces, etc.

11 Downloads

Updated 27 Nov 2019

View License

checkClass inspects the specified Java, Matlab (MCOS), .NET or COM (ActiveX) object reference or class-name, and reports its superclass(es), interfaces, new/modified methods, sub-classes, properties, events, enumerations 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:
% Java objects/classes
checkClass('java.lang.String')
checkClass(javax.swing.JButton)

jButton = javax.swing.JButton('Click me!');
jButton.checkClass; % or: checkClass(jButton)

checkClass(com.mathworks.mwswing.MJToolBar)
checkClass(com.mathworks.mde.desk.MLDesktop.getInstance)

% Matlab (MCOS)
checkClass(gcf)
checkClass('matlab.ui.Figure')

% .NET
checkClass('NET.Assembly')

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

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

Cite As

Yair Altman (2019). checkClass - inspect a Java/Matlab/COM class object/name (https://www.mathworks.com/matlabcentral/fileexchange/26947-checkclass-inspect-a-java-matlab-com-class-object-name), MATLAB Central File Exchange. Retrieved .

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

@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.

Jonathan

Fun tool for investigating MATLAB internals.

Updates

1.27.0.0

fixed a couple of edge cases

1.26.0.0

improved display of class hierarchies; fixes for MCOS classes

1.25.0.0

fixed some edge cases; improved the display of multiple super-classes

1.23.0.0

attribution of whereisjavaclassloadingfrom created by Andrew Janke

1.22.1.0

fixed the downloadable file

1.22.0.0

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.0.0

fixed java annotations

1.7.0.0

handle missing/string input; handle MCOS objects

1.6.0.0

fixed edge case

1.5.0.0

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.0.0

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

1.2.0.0

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

1.1.0.0

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

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags