Lines Matching refs:self
55 def __init__(self, name): argument
56 self.name = name.strip()
57 self.arrays = name.count("[")
58 self.base_name = self.name if self.arrays == 0 else self.name[:-(
59 self.arrays * 2)]
61 def __repr__(self): argument
62 return self.name
65 def descriptor(self): argument
67 if self.base_name == "int":
68 return "[" * self.arrays + "I"
69 elif self.base_name == "short":
70 return "[" * self.arrays + "S"
71 elif self.base_name == "long":
72 return "[" * self.arrays + "J"
73 elif self.base_name == "char":
74 return "[" * self.arrays + "C"
75 elif self.base_name == "boolean":
76 return "[" * self.arrays + "Z"
77 elif self.base_name == "byte":
78 return "[" * self.arrays + "B"
79 elif self.base_name == "float":
80 return "[" * self.arrays + "F"
81 elif self.base_name == "double":
82 return "[" * self.arrays + "D"
83 elif self.base_name == "void":
84 return "[" * self.arrays + "V"
86 return "[" * self.arrays + "L{};".format("/".join(
87 self.base_name.split(".")))
93 def __init__(self, mi): argument
94 self.offset = mi.addr
95 self.len = mi.size
96 self.name = string_at(mi.name, mi.name_size).decode("utf-8")
98 def __repr__(self): argument
99 return "(" + self.name + ")"
102 def descriptor(self): argument
104 ret = DexClass(self.name.split(" ")[0])
105 non_ret = self.name[len(ret.name) + 1:]
119 def name_only(self): argument
121 ret = DexClass(self.name.split(" ")[0])
122 non_ret = self.name[len(ret.name) + 1:]
127 def klass(self): argument
129 ret = DexClass(self.name.split(" ")[0])
130 non_ret = self.name[len(ret.name) + 1:]
138 def __init__(self): argument
139 self.ext_dex_file_ = None
143 def methods(self): argument
153 libdexfile.ExtDexFileGetAllMethodInfos(self.ext_dex_file_,
160 def __init__(self, dat, loc): argument
164 self.mem_ref = (c_byte * len(dat)).from_buffer_copy(dat)
167 self.mem_ref, byref(c_size_t(len(dat))),
171 self.ext_dex_file_ = res_fle_ptr.contents
176 def __init__(self, file, loc): argument
178 self.file = open(file, "rb")
179 self.loc = file
181 self.file = file
182 self.loc = "file_obj"
183 super().__init__(self.file.read(), self.loc)