File Exchange

image thumbnail

checkClass - inspect a Java/Matlab class object/name

version 1.19 (19.5 KB) by

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

6 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 (2)

Ariel Vaknin

Jonathan

Fun tool for investigating MATLAB internals.

Updates

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