Interface IDecompiledItem
- All Known Subinterfaces:
IDecompiledClass,IDecompiledField,IDecompiledMethod
Top-level type representing an item decompiled by
gendec (method, field, class).-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the AST item.intRetrieve the number of completed decompilation passes.longRetrieve the creation timestamp.Retrieve the decompiler context that produced this item.Retrieve an error description for failed decompilations.intgetFlags()Retrieve item flags.longRetrieve the last modification timestamp.Retrieve the native item backing this decompiled item.NOTE: On error, the status is set to COMPLETED andgetErrorDescription()returns a non-null object.default booleanisDone()Determine whether decompilation completed.default booleanDetermine whether decompilation completed with an error.default booleanDetermine whether decompilation completed successfully.voidsetFlags(int flags) Set item flags.
-
Method Details
-
getDecompiler
INativeDecompilerContext getDecompiler()Retrieve the decompiler context that produced this item.- Returns:
- decompiler context
-
getNativeItem
INativeItem getNativeItem()Retrieve the native item backing this decompiled item.- Returns:
- native item
-
getASTItem
ICDecompilableElement getASTItem()Retrieve the AST item.- Returns:
- AST item
-
getStatus
DecompilationStatus getStatus()NOTE: On error, the status is set to COMPLETED andgetErrorDescription()returns a non-null object.- Returns:
- current decompilation status
-
getCompletionCount
int getCompletionCount()Retrieve the number of completed decompilation passes.- Returns:
- completion count
-
getCreationTimestamp
long getCreationTimestamp()Retrieve the creation timestamp.- Returns:
- creation timestamp, in milliseconds
-
getLastModificationTimestampMs
long getLastModificationTimestampMs()Retrieve the last modification timestamp.- Returns:
- last modification timestamp, in milliseconds
-
getFlags
int getFlags()Retrieve item flags.- Returns:
- item flags
-
setFlags
void setFlags(int flags) Set item flags.- Parameters:
flags- item flags
-
getErrorDescription
IErrorDescription getErrorDescription()Retrieve an error description for failed decompilations.- Returns:
- error description, or null if the decompilation did not fail
-
isDone
default boolean isDone()Determine whether decompilation completed.- Returns:
- true if the status is
DecompilationStatus.COMPLETED
-
isSuccess
default boolean isSuccess()Determine whether decompilation completed successfully.- Returns:
- true if decompilation completed without an error
-
isFailure
default boolean isFailure()Determine whether decompilation completed with an error.- Returns:
- true if decompilation completed with an error
-