Lines Matching defs:smaliMethod

95         SmaliMethod smaliMethod = smaliClass.getMethods()[0];
97 Assert.assertEquals(127, smaliMethod.getRegisterCount());
98 Assert.assertEquals(4, smaliMethod.getParameterRegisterCount());
100 Assert.assertEquals(0, smaliMethod.getParameterList().getParameters()[0].getParameterRegisterNumber());
101 Assert.assertEquals(123, smaliMethod.getParameterList().getParameters()[0].getRegisterNumber());
135 SmaliMethod smaliMethod = smaliClass.getMethods()[0];
137 SmaliMethodParamList paramList = smaliMethod.getParameterList();
178 SmaliMethod smaliMethod = smaliClass.getMethods()[0];
180 Assert.assertTrue(smaliMethod.isVarArgs());
181 Assert.assertFalse(smaliMethod.getParameterList().getParameters()[0].isVarArgs());
182 Assert.assertFalse(smaliMethod.getParameterList().getParameters()[1].isVarArgs());
183 Assert.assertTrue(smaliMethod.getParameterList().getParameters()[2].isVarArgs());
185 smaliMethod = smaliClass.getMethods()[1];
186 Assert.assertTrue(smaliMethod.isVarArgs());
187 Assert.assertFalse(smaliMethod.getParameterList().getParameters()[0].isVarArgs());
188 Assert.assertFalse(smaliMethod.getParameterList().getParameters()[1].isVarArgs());
189 Assert.assertFalse(smaliMethod.getParameterList().getParameters()[2].isVarArgs());
241 SmaliMethod smaliMethod = smaliClass.getMethods()[0];
243 List<SmaliInstruction> instructions = smaliMethod.getInstructions();
247 private void checkSourcePosition(SmaliMethod smaliMethod, int codeOffset, Opcode opcode) {
248 SourcePosition sourcePosition = smaliMethod.getSourcePositionForCodeOffset(codeOffset);
261 SmaliMethod smaliMethod = smaliClass.getMethods()[0];
263 checkSourcePosition(smaliMethod, 0, Opcode.CONST_4);
264 checkSourcePosition(smaliMethod, 2, Opcode.IF_NEZ);
265 checkSourcePosition(smaliMethod, 6, Opcode.MOVE);
266 checkSourcePosition(smaliMethod, 8, Opcode.RETURN);
267 checkSourcePosition(smaliMethod, 10, Opcode.IF_NE);
268 checkSourcePosition(smaliMethod, 14, Opcode.SGET_OBJECT);
269 checkSourcePosition(smaliMethod, 18, Opcode.CONST_4);
270 checkSourcePosition(smaliMethod, 20, Opcode.INVOKE_VIRTUAL);
271 checkSourcePosition(smaliMethod, 26, Opcode.MOVE_RESULT);
272 checkSourcePosition(smaliMethod, 28, Opcode.GOTO);
273 checkSourcePosition(smaliMethod, 30, Opcode.SGET_OBJECT);
274 checkSourcePosition(smaliMethod, 34, Opcode.INVOKE_VIRTUAL);
275 checkSourcePosition(smaliMethod, 40, Opcode.MOVE_RESULT);
276 checkSourcePosition(smaliMethod, 42, Opcode.GOTO);
284 SmaliMethod smaliMethod = smaliClass.getMethods()[0];
286 SmaliThrowsList throwsList = smaliMethod.getThrowsList();
303 SmaliMethod smaliMethod = smaliClass.getMethods()[0];
305 Assert.assertNotNull(smaliMethod.getReturnType());
306 Assert.assertTrue(smaliMethod.getReturnType().isConvertibleFrom(PsiPrimitiveType.INT));
307 Assert.assertTrue(smaliMethod.getReturnType().isAssignableFrom(PsiPrimitiveType.INT));