|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jode.decompiler.Decompiler
This is the interface that other java classes may use to decompile
classes. Feel free to use it in your own GNU GPL'ed project.
Please tell me about your project.
Note that the GNU GPL doesn't allow you to use this interface in
commercial programs.
Field Summary | |
static char |
altPathSeparatorChar
We need a different pathSeparatorChar, since ':' (used for most UNIX System) is used a protocol separator in URLs. |
Constructor Summary | |
Decompiler()
Create a new decompiler. |
Method Summary | |
void |
decompile(java.lang.String className,
java.io.Writer writer,
ProgressListener progress)
Decompile a class. |
void |
setClassPath(ClassPath classpath)
Set the class path. |
void |
setClassPath(java.lang.String classpath)
Sets the class path. |
void |
setClassPath(java.lang.String[] classpath)
Set the class path. |
void |
setErr(java.io.PrintWriter errorStream)
Set the stream where copyright and warnings/errors are printed to. |
void |
setOption(java.lang.String option,
java.lang.String value)
Set an option. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char altPathSeparatorChar
Constructor Detail |
public Decompiler()
Method Detail |
public void setClassPath(java.lang.String classpath)
classpath
- A comma separated classpath.
java.lang.NullPointerException
- if classpath is null.setClassPath(String[])
public void setClassPath(java.lang.String[] classpath)
classpath
- a non empty array of jar files and directories;
URLs are allowed, too.
java.lang.NullPointerException
- if classpath is null.
java.lang.IndexOutOfBoundsException
- if classpath array is empty.setClassPath(String)
public void setClassPath(ClassPath classpath)
classpath
- a classpath object.
java.lang.NullPointerException
- if classpath is null.
java.lang.IndexOutOfBoundsException
- if classpath array is empty.setClassPath(String)
public void setOption(java.lang.String option, java.lang.String value)
option
- the option (pretty, style, decrypt, verify, etc.)value
- ("1"/"0" for on/off, "sun"/"gnu" for style)
java.lang.IllegalArgumentException
- if option or value is invalid.public void setErr(java.io.PrintWriter errorStream)
errorStream
- the error stream. Note that this is a
PrintWriter, not a PrintStream (which are deprecated since 1.1).public void decompile(java.lang.String className, java.io.Writer writer, ProgressListener progress) throws java.io.IOException
className
- full-qualified classname, dot separated, e.g.
"java.lang.Object"writer
- The stream where the decompiled code should be
written. Hint: Use a BufferedWriter for good performance.progress
- A progress listener (see below). Null if you
don't need information about progress.
java.lang.IllegalArgumentException
- if className isn't correct.
IOException
- if writer throws an exception.
java.lang.RuntimeException
- If jode has a bug ;-)
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |