image thumbnail

checkClass - inspect a Java/Matlab/COM/C++​/.NET class

version 1.33.0.0 (79 KB) by Yair Altman
inspect a Java/MCOS/COM/C++/.NET class object or name and display its methods, properties, events, interfaces, superclasses, constants, etc.

1.8K Downloads

Updated 05 Dec 2021

View License

checkClass inspects the specified Java, Matlab (MCOS), .NET, C++ (CLib), or COM (ActiveX) object reference or class-name, and reports its superclass(es), interfaces, new/modified methods, super/sub-classes, properties, events, constants, enumerations and annotations.
metadata = checkClass(...) returns a meta.class or meta.package object that encapsulates the input object.
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=1 % Note: changed default in v1.32!
metadata = checkClass(...)
Usage 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')
checkClass(System.Diagnostics.Process.GetCurrentProcess)
Technical description:
http://UndocumentedMatlab.com/articles/checkclass
Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

Cite As

Yair Altman (2021). checkClass - inspect a Java/Matlab/COM/C++/.NET class (https://www.mathworks.com/matlabcentral/fileexchange/26947-checkclass-inspect-a-java-matlab-com-c-net-class), MATLAB Central File Exchange. Retrieved .

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!