|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.Decompiler
public class Decompiler
Field Summary | |
---|---|
static int |
CASE_GAP_PROP
Decompilation property to specify identation offset for case labels. |
static int |
INDENT_GAP_PROP
Decompilation property to specify default identation offset. |
static int |
INITIAL_INDENT_PROP
Decompilation property to specify initial ident value. |
static int |
ONLY_BODY_FLAG
Flag to indicate that the decompilation should omit the function header and trailing brace. |
static int |
TO_SOURCE_FLAG
Flag to indicate that the decompilation generates toSource result. |
Constructor Summary | |
---|---|
Decompiler()
|
Method Summary | |
---|---|
static java.lang.String |
compress(java.lang.String encodedSource,
int flags,
UintMap properties,
ScriptOrFnNode parseTree)
Compress the script |
static java.lang.String |
decompile(java.lang.String source,
int flags,
UintMap properties)
Decompile the source information associated with this js function/script back into a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ONLY_BODY_FLAG
public static final int TO_SOURCE_FLAG
public static final int INITIAL_INDENT_PROP
public static final int INDENT_GAP_PROP
public static final int CASE_GAP_PROP
Constructor Detail |
---|
public Decompiler()
Method Detail |
---|
public static java.lang.String compress(java.lang.String encodedSource, int flags, UintMap properties, ScriptOrFnNode parseTree)
encodedSource
- encoded source stringflags
- Flags specifying format of decompilation outputproperties
- Decompilation propertiesparseTree
- Mapping for each function node and corresponding parameters & variables names
public static java.lang.String decompile(java.lang.String source, int flags, UintMap properties)
source
- encoded source tree presentationflags
- flags to select output formatproperties
- indentation properties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |