public class

DecompilationContext

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.DecompilationContext

Summary

Public Constructors
DecompilationContext()
DecompilationContext(DecompilationOptions opt)
DecompilationContext(int flags, Long maxTimePerMethod, Long maxTimeTotal)
Convenience constructor.
DecompilationContext(int flags)
Convenience constructor.
Public Methods
DecompilationOptions addFlags(int flags)
Convenience method.
IProgressCallback getCallback()
Object getData(String key)
String getError(String sig)
Map<String, String> getErrorMap()
Convenience method.
int getFlags()
Convenience method.
Long getMaxTimePerMethod()
Convenience method.
Long getMaxTimeTotal()
Convenience method.
DecompilationOptions getOptions()
Map<String, DecompilationResult> getResultMap()
DecompilationResult getResults(String sig)
boolean hasErrors()
boolean hasFlags(int f)
Convenience method.
boolean isInterruptionRequested()
void putData(String key, Object value)
void recordError(String sig, String error)
void recordResult(String sig, DecompilationResult r)
DecompilationOptions removeFlags(int flags)
Convenience method.
void requestInterruption()
static DecompilationContext safe(DecompilationContext ctx)
void setCallback(IProgressCallback callback)
Set an optional callback object to receive progress information regarding a decompilation operation.
DecompilationOptions setOptions(DecompilationOptions options)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DecompilationContext ()

public DecompilationContext (DecompilationOptions opt)

public DecompilationContext (int flags, Long maxTimePerMethod, Long maxTimeTotal)

Convenience constructor.

public DecompilationContext (int flags)

Convenience constructor.

Public Methods

public DecompilationOptions addFlags (int flags)

Convenience method.

Parameters
flags option flags to be added
Returns
  • the previous options

public IProgressCallback getCallback ()

public Object getData (String key)

public String getError (String sig)

public Map<String, String> getErrorMap ()

Convenience method. Map of key=object signature (e.g., method jvm name) to value= error string (e.g., stacktrace)

public int getFlags ()

Convenience method.

public Long getMaxTimePerMethod ()

Convenience method.

public Long getMaxTimeTotal ()

Convenience method.

public DecompilationOptions getOptions ()

Returns
  • current options (never null)

public Map<String, DecompilationResult> getResultMap ()

public DecompilationResult getResults (String sig)

public boolean hasErrors ()

public boolean hasFlags (int f)

Convenience method.

public boolean isInterruptionRequested ()

public void putData (String key, Object value)

public void recordError (String sig, String error)

public void recordResult (String sig, DecompilationResult r)

public DecompilationOptions removeFlags (int flags)

Convenience method.

Parameters
flags option flags to be removed
Returns
  • the previous options

public void requestInterruption ()

public static DecompilationContext safe (DecompilationContext ctx)

public void setCallback (IProgressCallback callback)

Set an optional callback object to receive progress information regarding a decompilation operation.

public DecompilationOptions setOptions (DecompilationOptions options)

Returns
  • the previous options