File Exchange

image thumbnail

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

version 1.28.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.

6 Downloads

Updated 07 Jan 2020

View Version History

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/articles/checkclass

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

Cite As

Yair Altman (2020). 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)

Martin Lechner

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

Martin Lechner

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.

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!