Class DexDecompilerEvent<T>

java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.DexDecompilerEvent<T>
Type Parameters:
T - event-specific data type
Direct Known Subclasses:
DexDecompilerEvent.BuiltString, DexDecompilerEvent.DecryptedBytes, DexDecompilerEvent.DecryptedString, DexDecompilerEvent.Message, DexDecompilerEvent.UnreflectedFieldRead, DexDecompilerEvent.UnreflectedFieldWrite, DexDecompilerEvent.UnreflectedInvocation

@Immutable @Ser public class DexDecompilerEvent<T> extends Object
Events generated by Dex decompilers.
  • Constructor Details

    • DexDecompilerEvent

      public DexDecompilerEvent(DexDecompilerEvent.Type type, T data, String address)
      Create a decompiler event.
      Parameters:
      type - event type
      data - event data
      address - optional
  • Method Details

    • getTimestamp

      public long getTimestamp()
      Get the event creation timestamp.
      Returns:
      the timestamp, in milliseconds since the epoch
    • getType

      public DexDecompilerEvent.Type getType()
      Get the event type.
      Returns:
      the event type
    • getData

      public T getData()
      Get the event data.
      Returns:
      the event data
    • formatData

      protected String formatData(T data)
      Format the event-specific data.
      Parameters:
      data - event data
      Returns:
      formatted data
    • getAddress

      public String getAddress()
      Get the optional code address associated with this event.
      Returns:
      the address, or null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • format

      public String format(boolean includeType, boolean includeAddress)
      Format this event.
      Parameters:
      includeType - true to include the event type
      includeAddress - true to include the optional code address
      Returns:
      the formatted event