mocha
Class MochaGate

java.lang.Object
  |
  +--mocha.MochaGate

public class MochaGate
extends java.lang.Object
implements Decompiler, java.awt.event.ItemListener


Field Summary
static boolean raw
          if raw is true, we have java assembly code!
 
Constructor Summary
MochaGate()
           
 
Method Summary
static java.lang.String decompile(java.lang.Class c)
          decompile from a class
static java.lang.String decompile(java.lang.String className)
          decompile from a class name (absolute name)
 java.lang.String decompileClass(java.lang.Class className)
          decompile
 java.lang.String getDecompilerName()
          identification
 boolean hasOptions()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
          implements ItemListener
static void main(java.lang.String[] args)
          test: argument = class name options : -v (verbose) -d (debug) -r (raw)
static java.io.InputStream openStream(java.lang.String packName, java.lang.String className)
          open a class stream (forbidden by ClassLoader!)
 void setDecompile()
          set decompile mode
 void setDisassemble()
          set disassemble mode
 void setupOptions(Assistant master)
          setup options
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

raw

public static boolean raw
if raw is true, we have java assembly code!
Constructor Detail

MochaGate

public MochaGate()
Method Detail

decompile

public static java.lang.String decompile(java.lang.Class c)
decompile from a class

openStream

public static java.io.InputStream openStream(java.lang.String packName,
                                             java.lang.String className)
                                      throws java.lang.Exception
open a class stream (forbidden by ClassLoader!)

decompile

public static java.lang.String decompile(java.lang.String className)
decompile from a class name (absolute name)

main

public static void main(java.lang.String[] args)
test: argument = class name options : -v (verbose) -d (debug) -r (raw)

setDecompile

public void setDecompile()
set decompile mode
Specified by:
setDecompile in interface Decompiler

setDisassemble

public void setDisassemble()
set disassemble mode
Specified by:
setDisassemble in interface Decompiler

getDecompilerName

public java.lang.String getDecompilerName()
identification
Specified by:
getDecompilerName in interface Decompiler

decompileClass

public java.lang.String decompileClass(java.lang.Class className)
decompile
Specified by:
decompileClass in interface Decompiler

setupOptions

public void setupOptions(Assistant master)
setup options
Specified by:
setupOptions in interface Decompiler

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
implements ItemListener
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

hasOptions

public boolean hasOptions()
Specified by:
hasOptions in interface Decompiler
Returns:
true since it has some options to be configured