com.cycling74.max
Class MXJDecompiler

java.lang.Object
  extended by com.cycling74.max.MXJDecompiler

public class MXJDecompiler
extends java.lang.Object

We currently use JODE http://jode.sourceforge.net as the backend for this interface.


Method Summary
 void decompile(java.lang.String classname, java.lang.String[] classpath, java.io.Writer writer)
          same as above but you can specify the classpath yourself as an array of strings.
 void decompile(java.lang.String classname, java.io.Writer writer)
          Attempt to decompile a class.
static MXJDecompiler getInstance()
          Get the singleton instance of the MXJDecompiler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MXJDecompiler getInstance()
Get the singleton instance of the MXJDecompiler.


decompile

public void decompile(java.lang.String classname,
                      java.io.Writer writer)
               throws java.io.IOException
Attempt to decompile a class. Not all classes can be decompiled to valid source for various reasons but most simple classes can. The current MaxSystem.getClassPath is used to search for the class you wish to decompile.

Parameters:
classname - the name of the class you wish to decompile in dot format i.e. com.cycling74.max.Atom
writer - any subclass of writer to where the results of decompilation will be dumped.
Throws:
java.io.IOException

decompile

public void decompile(java.lang.String classname,
                      java.lang.String[] classpath,
                      java.io.Writer writer)
               throws java.io.IOException
same as above but you can specify the classpath yourself as an array of strings.

Throws:
java.io.IOException