Interface IDEmuContext
public interface IDEmuContext
An emulator context, used by
dexdec
State objects. Code emulation takes place within a
context object. Context objects hold the execution stack frame.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Perform a deep copy of this context, including the frames.int
Get the count of frames.getFrame
(int index) Retrieve a frame by index.Retrieve the read-only list of frames.getName()
Retrieve this context name.Retrieve the collection of origins for this context.boolean
Determine whether this contet holds any frame.void
pushOriginInfo
(String callerMsig) Push additional origin information for this context.
-
Method Details
-
copy
IDEmuContext copy()Perform a deep copy of this context, including the frames.- Returns:
-
getName
String getName()Retrieve this context name.- Returns:
-
hasFrames
boolean hasFrames()Determine whether this contet holds any frame.- Returns:
-
getCountOfFrames
int getCountOfFrames()Get the count of frames.- Returns:
-
getFrames
Collection<IDEmuFrame> getFrames()Retrieve the read-only list of frames.- Returns:
-
getFrame
Retrieve a frame by index. 0 is the top-level frame (i.e., the last-pushed frame, or current frame)- Parameters:
index
- frame index (0 being the top-level frame, or current frame)- Returns:
- a frame
-
getOrigins
Collection<String> getOrigins()Retrieve the collection of origins for this context.- Returns:
-
pushOriginInfo
Push additional origin information for this context. Origin information is used to by the emulator to build stacktraces. They are virtual pseudo-frames above the actual frames for this context.- Parameters:
callerMsig
-
-