Searched refs:ctClass (Results 1 – 5 of 5) sorted by relevance
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/ |
D | AndroidTranslator.java | 89 CtClass ctClass; in onLoad() local 91 ctClass = classPool.get(className); in onLoad() 96 if (shouldInstrument(ctClass)) { in onLoad() 97 int modifiers = ctClass.getModifiers(); in onLoad() 99 ctClass.setModifiers(modifiers & ~Modifier.FINAL); in onLoad() 102 classHandler.instrument(ctClass); in onLoad() 104 fixConstructors(ctClass); in onLoad() 105 fixMethods(ctClass); in onLoad() 108 classCache.addClass(className, ctClass.toBytecode()); in onLoad() 115 /* package */ boolean shouldInstrument(CtClass ctClass) { in shouldInstrument() argument [all …]
|
D | Type.java | 51 public static Type find(CtClass ctClass) { in find() argument 52 if (ctClass.equals(CtClass.voidType)) { in find() 54 } else if (ctClass.equals(CtClass.booleanType)) { in find() 56 } else if (ctClass.equals(CtClass.byteType)) { in find() 58 } else if (ctClass.equals(CtClass.charType)) { in find() 60 } else if (ctClass.equals(CtClass.shortType)) { in find() 62 } else if (ctClass.equals(CtClass.intType)) { in find() 64 } else if (ctClass.equals(CtClass.longType)) { in find() 66 } else if (ctClass.equals(CtClass.floatType)) { in find() 68 } else if (ctClass.equals(CtClass.doubleType)) { in find() [all …]
|
D | ShadowWrangler.java | 55 public void instrument(CtClass ctClass) { in instrument() argument 57 CtClass objectClass = ctClass.getClassPool().get(Object.class.getName()); in instrument() 59 ctClass.getField(SHADOW_FIELD_NAME); in instrument() 61 CtField field = new CtField(objectClass, SHADOW_FIELD_NAME, ctClass); in instrument() 63 ctClass.addField(field); in instrument()
|
D | ClassHandler.java | 10 void instrument(CtClass ctClass); in instrument() argument
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/ |
D | AndroidTranslatorUnitTest.java | 25 CtClass ctClass = classPool.get("java.lang.String"); in whenMethodReturnsObject_shouldGenerateMethodBody() local 27 ctClass, ctClass.getDeclaredMethod("substring", new CtClass[]{CtClass.intType}), in whenMethodReturnsObject_shouldGenerateMethodBody() 28 ctClass, Type.OBJECT, false, false); in whenMethodReturnsObject_shouldGenerateMethodBody() 39 CtClass ctClass = classPool.get("java.lang.String"); in whenMethodReturnsPrimitive_shouldGenerateMethodBody() local 41 ctClass, ctClass.getDeclaredMethod("length"), in whenMethodReturnsPrimitive_shouldGenerateMethodBody() 42 ctClass, Type.OBJECT, false, false); in whenMethodReturnsPrimitive_shouldGenerateMethodBody() 53 CtClass ctClass = classPool.get("java.lang.Object"); in whenMethodReturnsVoid_shouldGenerateMethodBody() local 55 ctClass, ctClass.getDeclaredMethod("wait"), in whenMethodReturnsVoid_shouldGenerateMethodBody() 56 ctClass, Type.VOID, false, false); in whenMethodReturnsVoid_shouldGenerateMethodBody() 66 CtClass ctClass = classPool.get("java.lang.String"); in whenMethodIsStatic_shouldGenerateMethodBody() local [all …]
|