add instruction reprs, WIP
This commit is contained in:
parent
4b62c495ed
commit
95f4686f3f
2 changed files with 4485 additions and 1 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -603,6 +603,21 @@ impl MethodHandle {
|
|||
}
|
||||
}
|
||||
|
||||
// Not exposed to python, but meh, let's keep it coherent
|
||||
pub fn __repr__(&self) -> String {
|
||||
match self {
|
||||
Self::StaticPut(val) => val.__repr__(),
|
||||
Self::StaticGet(val) => val.__repr__(),
|
||||
Self::InstancePut(val) => val.__repr__(),
|
||||
Self::InstanceGet(val) => val.__repr__(),
|
||||
Self::InvokeStatic(val) => val.__repr__(),
|
||||
Self::InvokeInstance(val) => val.__repr__(),
|
||||
Self::InvokeConstructor(val) => val.__str__(),
|
||||
Self::InvokeDirect(val) => val.__repr__(),
|
||||
Self::InvokeInterface(val) => val.__repr__(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Return all strings referenced in the Handle.
|
||||
pub fn get_all_strings(&self) -> HashSet<DexString> {
|
||||
match self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue