Code covered by the BSD License  

Highlights from
checkClass

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 4.7 KB File ID: #26947
image thumbnail

checkClass

by Yair Altman

 

14 Mar 2010 (Updated 31 May 2011)

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

| Watch this File

File Information
Description

checkClass inspects the specified java 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(javaClassName)
    checkClass(javaObjectReference)
    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)

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

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
UIINSPECT - display methods-properties-callbacks of an object
This submission has inspired the following:
convert objects to string

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
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)

Tag Activity for this File
Tag Applied By Date/Time
java Yair Altman 15 Mar 2010 12:39:17
java Gracie 16 Mar 2010 07:41:55
java Zhibo 16 Mar 2010 10:42:22

Contact us at files@mathworks.com