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

バージョン 1.39.0.0 (82.7 KB) 作成者: Yair Altman
Inspect a Java/MCOS/Python/C++/.NET object or classname and display its methods, properties, events, superclasses, subclasses, constants etc

ダウンロード 1.9K 件

更新 2022/8/31

ライセンスの表示

checkClass inspects the specified Java, Matlab (MCOS), .NET, Python, 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 GUI-based UIINSPECT utility 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) objects/classes/packages
checkClass(gcf)
checkClass('matlab.ui.Figure')
checkClass matlab.ui.Figure % equivalent to above
checkClass matlab.ui.control % package name (contains classes, sub-packages)
% .NET objects/classes/packages
checkClass('NET.Assembly')
checkClass(System.Diagnostics.Process.GetCurrentProcess)
% Python objects/classes/modules
checkClass('py.inspect')
checkClass(py.importlib.import_module('calendar'))
Technical description:
Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

引用

Yair Altman (2022). checkClass - inspect a Java/Matlab/Python/COM/C++/.NET class (https://www.mathworks.com/matlabcentral/fileexchange/26947-checkclass-inspect-a-java-matlab-python-com-c-net-class), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグの追加
謝辞

ヒントを得たファイル: UIINSPECT - display methods, properties & callbacks of an object

ヒントを与えたファイル: convert objects to string

Community Treasure Hunt

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

Start Hunting!