Interface IDecompiledItem

All Known Subinterfaces:
IDecompiledClass, IDecompiledField, IDecompiledMethod

@Ser public interface IDecompiledItem
Top-level type representing an item decompiled by gendec (method, field, class).
  • 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 and getErrorDescription() 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