Home
last modified time | relevance | path

Searched refs:ctConstructor (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslator.java212 for (CtConstructor ctConstructor : ctClass.getDeclaredConstructors()) { in fixConstructors()
214 fixConstructor(ctClass, hasDefault, ctConstructor); in fixConstructors()
216 if (ctConstructor.getParameterTypes().length == 0) { in fixConstructors()
220 throw new RuntimeException("problem instrumenting " + ctConstructor, e); in fixConstructors()
230 …n fixConstructor(CtClass ctClass, boolean needsDefault, CtConstructor ctConstructor) throws NotFou… in fixConstructor() argument
231 String methodBody = generateConstructorBody(ctClass, ctConstructor.getParameterTypes()); in fixConstructor()
232 ctConstructor.setBody("{\n" + methodBody + "}\n"); in fixConstructor()
/external/android-mock/src/com/google/android/testing/mocking/
DAndroidMockGenerator.java267 CtConstructor ctConstructor; in addConstructors() local
269 ctConstructor = CtNewConstructor.make(constructor.getParameterTypes(), in addConstructors()
271 clazz.addConstructor(ctConstructor); in addConstructors()