org.mozilla.javascript
public class Decompiler extends Object
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. |
Method Summary | |
---|---|
static String | compress(String encodedSource, int flags, UintMap properties, ScriptOrFnNode parseTree)
Compress the script
|
static String | decompile(String source, int flags, UintMap properties)
Decompile the source information associated with this js
function/script back into a string. |
Parameters: encodedSource encoded source string flags Flags specifying format of decompilation output properties Decompilation properties parseTree Mapping for each function node and corresponding parameters & variables names
Returns: compressed script
Parameters: source encoded source tree presentation flags flags to select output format properties indentation properties