java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.DecompilationContext |
Decompilation context. It holds thread-safe (and concurrency-ready) context information about a decompilation and its results, as well as decompilation options (immutable object, that may be replaced).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DecompilationContext()
Construct a new context with no particular options (defaults will be used).
| |||||||||||
DecompilationContext(DecompilationOptions opt)
Construct a new context with the provided options.
| |||||||||||
DecompilationContext(int flags, Long maxTimePerMethod, Long maxTimeTotal)
Convenience constructor.
| |||||||||||
DecompilationContext(int flags)
Convenience constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DecompilationOptions |
addFlags(int flags)
Convenience method.
| ||||||||||
DecompilationContext |
fork()
Fork the context.
| ||||||||||
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) | ||||||||||
boolean |
recordAndCheckDeferredRequests(int cnt, int cap)
Record occurrences or future occurrences of deferred requests, and check them against a
provided cap.
| ||||||||||
int |
recordDeferredRequest()
Record the occurrence or future occurrence of a deferred request.
| ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct a new context with no particular options (defaults will be used).
Construct a new context with the provided options.
Convenience constructor.
Convenience constructor.
Convenience method.
flags | option flags to be added |
---|
Fork the context. The fork context reuses this context's objects. Forked contexts may be used hen performing concurrent decompilations.
Convenience method. Map of key=object signature (e.g., method jvm name) to value= error string (e.g., stacktrace)
Convenience method.
Convenience method.
Convenience method.
Convenience method.
Record occurrences or future occurrences of deferred requests, and check them against a provided cap.
cnt | count of deferred requests to record |
---|---|
cap | current cap (a negative number means no cap) |
Record the occurrence or future occurrence of a deferred request.
Convenience method.
flags | option flags to be removed |
---|
Set an optional callback object to receive progress information regarding a decompilation operation.