Code covered by the BSD License  

Highlights from
checkClass - inspect a Java/Matlab class object/name

5.0
5.0 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 19.2 KB File ID: #26947
image thumbnail

checkClass - inspect a Java/Matlab class object/name

by

Yair Altman (view profile)

 

14 Mar 2010 (Updated )

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

| Watch this File

File Information
Description

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)

Acknowledgements

Uiinspect Display Methods, Properties & Callbacks Of An Object inspired this file.

This file inspired Convert Objects To String.

MATLAB release MATLAB 7.6 (R2008a)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
15 Sep 2014 Ariel Vaknin  
12 Jun 2014 Jonathan

Fun tool for investigating MATLAB internals.

Updates
15 Mar 2010

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

07 May 2010

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

02 Jan 2011

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

31 May 2011

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)

14 Jan 2013

fixed edge case

12 Jan 2015

handle missing/string input; handle MCOS objects

Contact us