Question: It is possible to access bits of MATLAB's internal java code to programmatically change MATLAB itself. For example, you can programmatically open a document in the editor using

```
editorServices = com.mathworks.mlservices.MLEditorServices;
editorServices.newDocument()  %older versions of MATLAB seem to use new()

```

You can see the method signatures (but not what they do) using `methodsview`.

```
methodsview(com.mathworks.mlservices.MLEditorServices)

```

I have a few related questions about using these Java methods.

Firstly, is there any documentation on these things (either from the Mathworks or otherwise)?

Secondly, how do you find out what methods are available? The ones I've come across appear to be contained in JAR files in matlabroot\java\jar, but I'm not sure what the best way to inspect a JAR file is.

Thirdly, are there functions for inspecting the classes, other than `methodsview`?

Finally, are there any really useful methods that anyone has found?

Answer: 
I am an eclipse fan. If you use that as your IDE, the jar can be imported into one of your projects and you can inspect the methods in there.
[Undocumented Matlab](http://undocumentedmatlab.com/) is a great place to start looking.