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
Events generated by Dex decompilers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent reporting a dynamically built string.static classEvent reporting decrypted bytes.static classEvent reporting a decrypted string.static classEvent carrying an informational message.static enumEvent categories emitted by Dex decompilers.static classEvent reporting a resolved reflective field read.static classEvent reporting a resolved reflective field write.static classEvent reporting a resolved reflective method invocation. -
Constructor Summary
ConstructorsConstructorDescriptionDexDecompilerEvent(DexDecompilerEvent.Type type, T data, String address) Create a decompiler event. -
Method Summary
Modifier and TypeMethodDescriptionbooleanformat(boolean includeType, boolean includeAddress) Format this event.protected StringformatData(T data) Format the event-specific data.Get the optional code address associated with this event.getData()Get the event data.longGet the event creation timestamp.getType()Get the event type.inthashCode()toString()
-
Constructor Details
-
DexDecompilerEvent
Create a decompiler event.- Parameters:
type- event typedata- event dataaddress- optional
-
-
Method Details
-
getTimestamp
public long getTimestamp()Get the event creation timestamp.- Returns:
- the timestamp, in milliseconds since the epoch
-
getType
Get the event type.- Returns:
- the event type
-
getData
Get the event data.- Returns:
- the event data
-
formatData
Format the event-specific data.- Parameters:
data- event data- Returns:
- formatted data
-
getAddress
Get the optional code address associated with this event.- Returns:
- the address, or null
-
hashCode
public int hashCode() -
equals
-
toString
-
format
Format this event.- Parameters:
includeType- true to include the event typeincludeAddress- true to include the optional code address- Returns:
- the formatted event
-