java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.DecompilationContext |
Decompilation context holding information about a decompilation and its results, as well as decompilation options. Immutable object, Thread-safe.
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() | ||||||||||
int |
getCounter1()
Retrieve the value of custom counter 1.
| ||||||||||
int |
getCounter2()
Retrieve the value of custom counter 2.
| ||||||||||
Object | getData(String key) | ||||||||||
String | getError(String sig) | ||||||||||
Map<String, String> |
getErrorMap()
Convenience method.
| ||||||||||
int |
getFlags()
Convenience method.
| ||||||||||
Map<String, Object> |
getMap1()
Retrieve the custom map 1.
| ||||||||||
Map<String, Object> |
getMap2()
Retrieve the custom map 2.
| ||||||||||
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.
| ||||||||||
int |
incrementCounter1()
Increment the value of custom counter 1.
| ||||||||||
int |
incrementCounter2()
Increment the value of custom counter 2.
| ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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.
Retrieve the value of custom counter 1. The counter is initialized with 0.
Retrieve the value of custom counter 2. The counter is initialized with 0.
Convenience method. Map of key=object signature (e.g., method jvm name) to value= error string (e.g., stacktrace)
Convenience method.
Retrieve the custom map 1. A decompiler may use this concurrent map as they choose.
Retrieve the custom map 2. A decompiler may use this concurrent map as they choose.
Convenience method.
Convenience method.
Convenience method.
Increment the value of custom counter 1. A decompiler may use this counter as they choose.
Increment the value of custom counter 2. A decompiler may use this counter as they choose.
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.