Main Content

methodsview

View class methods

Description

example

methodsview(packagename.classname) displays information about the methods in the class classname. If the class is in a package, include packagename. If classname is a MATLAB® or Java® class, methodsview lists only public methods, including those methods inherited from superclasses.

methodsview creates a window that displays the methods and information such as arguments, returned values, and superclasses. It also includes method qualifiers (for example, abstract or synchronized) and possible exceptions thrown.

methodsview(object) displays information for the class of object.

Examples

collapse all

List information on all methods in the java.awt.MenuItem class. MATLAB displays this information in a new window.

methodsview('java.awt.MenuItem')

Input Arguments

collapse all

Fully qualified class name, specified as a string or a character vector.

Object name, specified as a string or a character vector.

Version History

Introduced before R2006a