Home
last modified time | relevance | path

Searched refs:methodBody (Results 1 – 4 of 4) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslatorUnitTest.java26 String methodBody = androidTranslator.generateMethodBody( in whenMethodReturnsObject_shouldGenerateMethodBody() local
34 "}\n", methodBody); in whenMethodReturnsObject_shouldGenerateMethodBody()
40 String methodBody = androidTranslator.generateMethodBody( in whenMethodReturnsPrimitive_shouldGenerateMethodBody() local
48 "}\n", methodBody); in whenMethodReturnsPrimitive_shouldGenerateMethodBody()
54 String methodBody = androidTranslator.generateMethodBody( in whenMethodReturnsVoid_shouldGenerateMethodBody() local
61 "}\n", methodBody); in whenMethodReturnsVoid_shouldGenerateMethodBody()
67 String methodBody = androidTranslator.generateMethodBody( in whenMethodIsStatic_shouldGenerateMethodBody() local
75 "}\n", methodBody); in whenMethodIsStatic_shouldGenerateMethodBody()
88 String methodBody = androidTranslator.generateMethodBody( in shouldGenerateMethodBodyForEquals() local
95 "return super.equals($1);}\n", methodBody); in shouldGenerateMethodBodyForEquals()
/external/android-mock/src/com/google/android/testing/mocking/
DAndroidMockGenerator.java174 StringBuilder methodBody = getMethodSignature(method); in getInterfaceMethodSource() local
175 methodBody.append(";"); in getInterfaceMethodSource()
176 return methodBody.toString(); in getInterfaceMethodSource()
426 StringBuilder methodBody = getMethodSignature(method); in getDelegateMethodSource() local
427 methodBody.append("{"); in getDelegateMethodSource()
428 methodBody.append("if(this."); in getDelegateMethodSource()
429 methodBody.append(getDelegateFieldName()); in getDelegateMethodSource()
430 methodBody.append("==null){return "); in getDelegateMethodSource()
431 methodBody.append(getReturnDefault(method)); in getDelegateMethodSource()
432 methodBody.append(";}"); in getDelegateMethodSource()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslator.java225 String methodBody = generateConstructorBody(ctClass, new CtClass[0]); in fixConstructors() local
226 …structor(CtNewConstructor.make(new CtClass[0], new CtClass[0], "{\n" + methodBody + "}\n", ctClass… in fixConstructors()
231 String methodBody = generateConstructorBody(ctClass, ctConstructor.getParameterTypes()); in fixConstructor() local
232 ctConstructor.setBody("{\n" + methodBody + "}\n"); in fixConstructor()
309 …String methodBody = generateMethodBody(ctClass, ctMethod, wasNative, wasAbstract, returnCtClass, r… in fixMethod() local
312 …thod(ctClass, ctMethod, returnCtClass, methodName, paramTypes, "{\n" + methodBody + generateCallTo… in fixMethod()
315 ctMethod.insertBefore("{\n" + methodBody + "}\n"); in fixMethod()
320 …akeNewMethod(ctClass, ctMethod, returnCtClass, methodName, paramTypes, "{\n" + methodBody + "\n}"); in fixMethod()
323 ctMethod.insertBefore("{\n" + methodBody + "}\n"); in fixMethod()
330 …CtClass returnCtClass, String methodName, CtClass[] paramTypes, String methodBody) throws CannotCo… in makeNewMethod() argument
[all …]
/external/doclava/src/com/google/doclava/parser/
DJava.g221 * "methodBody". constructorBody starts with explicitConstructorInvocation,