Home
last modified time | relevance | path

Searched refs:classPool (Results 1 – 25 of 32) sorted by relevance

12

/external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslatorUnitTest.java15 private ClassPool classPool; field in AndroidTranslatorUnitTest
19 classPool = new ClassPool(true); in setUp()
25 CtClass ctClass = classPool.get("java.lang.String"); in whenMethodReturnsObject_shouldGenerateMethodBody()
39 CtClass ctClass = classPool.get("java.lang.String"); in whenMethodReturnsPrimitive_shouldGenerateMethodBody()
53 CtClass ctClass = classPool.get("java.lang.Object"); in whenMethodReturnsVoid_shouldGenerateMethodBody()
66 CtClass ctClass = classPool.get("java.lang.String"); in whenMethodIsStatic_shouldGenerateMethodBody()
87 CtClass ctClass = classPool.get("java.lang.Object"); in shouldGenerateMethodBodyForEquals()
100 …assertTrue(androidTranslator.shouldInstrument(classPool.makeClass("org.apache.http.impl.client.Def… in shouldInstrumentDefaultRequestDirector()
105 …assertTrue(androidTranslator.shouldInstrument(classPool.makeClass("com.google.android.maps.SomeMap… in shouldInstrumentGoogleMapsClasses()
110 assertFalse(androidTranslator.shouldInstrument(classPool.get("java.lang.Object"))); in shouldNotInstrumentCoreJdkClasses()
[all …]
/external/proguard/src/proguard/classfile/visitor/
DClassPoolFiller.java37 private final ClassPool classPool; field in ClassPoolFiller
43 public ClassPoolFiller(ClassPool classPool) in ClassPoolFiller() argument
45 this.classPool = classPool; in ClassPoolFiller()
53 classPool.addClass(clazz); in visitAnyClass()
DClassPresenceFilter.java34 private final ClassPool classPool; field in ClassPresenceFilter
48 public ClassPresenceFilter(ClassPool classPool, in ClassPresenceFilter() argument
52 this.classPool = classPool; in ClassPresenceFilter()
89 return classPool.getClass(clazz.getName()) != null ? in classFileVisitor()
DAllClassVisitor.java43 public void visitClassPool(ClassPool classPool) in visitClassPool() argument
45 classPool.classesAccept(classVisitor); in visitClassPool()
DNamedClassVisitor.java45 public void visitClassPool(ClassPool classPool) in visitClassPool() argument
47 classPool.classAccept(name, classVisitor); in visitClassPool()
DMultiClassPoolVisitor.java81 public void visitClassPool(ClassPool classPool) in visitClassPool() argument
85 classPoolVisitors[index].visitClassPool(classPool); in visitClassPool()
/external/javassist/src/main/javassist/tools/reflect/
DReflection.java80 protected ClassPool classPool; field in Reflection
96 classPool = null; in Reflection()
104 classPool = pool; in start()
108 CtClass c = classPool.get("javassist.tools.reflect.Sample"); in start()
114 = new CtClass[] { classPool.get("java.lang.Object") }; in start()
149 return makeReflective(classPool.get(classname), in makeReflective()
150 classPool.get(metaobject), in makeReflective()
151 classPool.get(metaclass)); in makeReflective()
206 if (clazz.subclassOf(classPool.get(classMetaobjectClassName))) in makeReflective()
211 if (clazz.subclassOf(classPool.get(metaobjectClassName))) in makeReflective()
[all …]
/external/javassist/src/test/test/javassist/proxy/
DProxyCacheGCTest.java64 ClassPool classPool = new ClassPool(basePool); in createProxy() local
69 CtClass ctTargetClass = classPool.makeClass(targetName); in createProxy()
77 CtClass ctHandlerClass = classPool.makeClass(handlerName); in createProxy()
84 CtClass ctFilterClass = classPool.makeClass(filterName); in createProxy()
92 Class javaTargetClass = classPool.toClass(ctTargetClass); in createProxy()
93 Class javaHandlerClass = classPool.toClass(ctHandlerClass); in createProxy()
94 Class javaFilterClass = classPool.toClass(ctFilterClass); in createProxy()
/external/proguard/src/proguard/io/
DClassRewriter.java37 private final ClassPool classPool; field in ClassRewriter
41 public ClassRewriter(ClassPool classPool, in ClassRewriter() argument
44 this.classPool = classPool; in ClassRewriter()
57 ProgramClass programClass = (ProgramClass)classPool.getClass(className); in read()
DDataEntryObfuscator.java37 private final ClassPool classPool; field in DataEntryObfuscator
51 public DataEntryObfuscator(ClassPool classPool, in DataEntryObfuscator() argument
55 this.classPool = classPool; in DataEntryObfuscator()
96 Clazz clazz = classPool.getClass(className); in renamedDataEntry()
DDataEntryRewriter.java36 private final ClassPool classPool; field in DataEntryRewriter
42 public DataEntryRewriter(ClassPool classPool, in DataEntryRewriter() argument
47 this.classPool = classPool; in DataEntryRewriter()
131 Clazz clazz = classPool.getClass(className); in writeUpdatedWord()
DManifestRewriter.java39 public ManifestRewriter(ClassPool classPool, in ManifestRewriter() argument
42 super(classPool, dataEntryWriter); in ManifestRewriter()
/external/proguard/src/proguard/obfuscate/
DMappingKeeper.java36 private final ClassPool classPool; field in MappingKeeper
50 public MappingKeeper(ClassPool classPool, in MappingKeeper() argument
53 this.classPool = classPool; in MappingKeeper()
66 clazz = classPool.getClass(name); in processClassMapping()
/external/javassist/src/main/javassist/compiler/
DMemberResolver.java27 private ClassPool classPool; field in MemberResolver
30 classPool = cp; in MemberResolver()
33 public ClassPool getClassPool() { return classPool; } in getClassPool()
48 classPool.recordInvalidClassName(classname); in recordPackage()
420 Iterator it = classPool.getImportedPackages(); in searchImports()
425 CtClass cc = classPool.get(fqName); in searchImports()
427 classPool.recordInvalidClassName(orgName); in searchImports()
431 classPool.recordInvalidClassName(fqName); in searchImports()
434 CtClass cc = classPool.get(pac); in searchImports()
436 classPool.recordInvalidClassName(orgName); in searchImports()
[all …]
/external/javassist/src/main/javassist/tools/web/
DWebserver.java38 private ClassPool classPool; field in Webserver
103 classPool = null; in Webserver()
112 classPool = loader; in setClassPool()
126 classPool = cp; in addTranslator()
128 t.start(classPool); in addTranslator()
333 if (classPool == null) in letUsersSendClassfile()
341 translator.onLoad(classPool, classname); in letUsersSendClassfile()
343 CtClass c = classPool.get(classname); in letUsersSendClassfile()
/external/javassist/src/main/javassist/tools/rmi/
DStubGenerator.java48 private ClassPool classPool; field in StubGenerator
71 classPool = pool; in start()
119 CtClass ctclazz = produceProxyClass(classPool.get(classname), in makeProxyClass()
136 CtClass proxy = classPool.makeClass(orgclass.getName(), in produceProxyClass()
142 = new CtField(classPool.get("javassist.tools.rmi.ObjectImporter"), in produceProxyClass()
182 return classPool.get(name); in toCtClass()
/external/javassist/src/main/javassist/bytecode/stackmap/
DTracer.java31 protected ClassPool classPool; field in Tracer
41 classPool = classes; in Tracer()
50 classPool = t.classPool; in Tracer()
380 classPool); in doOpcode54_95()
604 TypeData.setType(stackTypes[--stackTop], returnType, classPool); in doOpcode148_201()
646 TypeData.setType(stackTypes[stackTop - 1], "[Ljava.lang.Object;", classPool); in doOpcode148_201()
650 TypeData.setType(stackTypes[--stackTop], "java.lang.Throwable", classPool); in doOpcode148_201()
750 TypeData.setType(stackTypes[stackTop], getFieldClassName(desc, 0), classPool); in doPutField()
752 TypeData.setType(stackTypes[stackTop], desc, classPool); in doPutField()
769 TypeData.setType(stackTypes[--stackTop], className, classPool); in setFieldTarget()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslator.java59 public void start(ClassPool classPool) throws NotFoundException, CannotCompileException { in start() argument
60 injectClassHandlerToInstrumentedClasses(classPool); in start()
63 …private void injectClassHandlerToInstrumentedClasses(ClassPool classPool) throws NotFoundException… in injectClassHandlerToInstrumentedClasses() argument
70 CtClass robolectricInternalsCtClass = classPool.get(RobolectricInternals.class.getName()); in injectClassHandlerToInstrumentedClasses()
79 …public void onLoad(ClassPool classPool, String className) throws NotFoundException, CannotCompileE… in onLoad() argument
85 replaceClassWithFromAndroidEquivalent(classPool, className); in onLoad()
91 ctClass = classPool.get(className); in onLoad()
139 …private void replaceClassWithFromAndroidEquivalent(ClassPool classPool, String className) throws N… in replaceClassWithFromAndroidEquivalent() argument
144 CtClass ctClass = classPool.getAndRename(from, className); in replaceClassWithFromAndroidEquivalent()
DRobolectricClassLoader.java36 ClassPool classPool = new ClassPool(); in RobolectricClassLoader() local
37classPool.appendClassPath(new LoaderClassPath(RobolectricClassLoader.class.getClassLoader())); in RobolectricClassLoader()
40 addTranslator(classPool, androidTranslator); in RobolectricClassLoader()
/external/android-mock/src/com/google/android/testing/mocking/
DAndroidMockGenerator.java162 ClassPool classPool = getClassPool(); in generateInterface() local
164 return classPool.getCtClass(FileUtils.getInterfaceNameFor(originalClass, sdkVersion)); in generateInterface()
167 classPool.makeInterface(FileUtils.getInterfaceNameFor(originalClass, sdkVersion)); in generateInterface()
282 ClassPool classPool = getClassPool(); in getCtClassForClass() local
284 return classPool.get(clazz.getName()); in getCtClassForClass()
454 ClassPool classPool = getClassPool(); in generateSkeletalClass() local
460 newClass = classPool.makeClass(subclassName, superCtClass); in generateSkeletalClass()
464 return classPool.get(subclassName); in generateSkeletalClass()
/external/javassist/src/main/javassist/
DCtClassType.java59 ClassPool classPool; field in CtClassType
80 classPool = cp; in CtClassType()
169 classPool.compress(); in getClassFile2()
185 fin = classPool.openClassfile(getName()); in getClassFile2()
262 public ClassPool getClassPool() { return classPool; } in getClassPool()
264 void setClassPool(ClassPool cp) { classPool = cp; } in setClassPool()
267 URL url = classPool.find(getName()); in getURL()
314 if (supername != null && classPool.get(supername).subtypeOf(clazz)) in subtypeOf()
318 if (classPool.get(ifs[i]).subtypeOf(clazz)) in subtypeOf()
330 classPool.checkNotFrozen(name); in setName()
[all …]
/external/proguard/src/proguard/
DOutputWriter.java196 private static Map createPackagePrefixMap(ClassPool classPool) in createPackagePrefixMap() argument
200 Iterator iterator = classPool.classNames(); in createPackagePrefixMap()
210 String newClassName = classPool.getClass(className).getName(); in createPackagePrefixMap()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DDexPool.java72 …ClassPool classPool = new ClassPool(stringPool, typePool, fieldPool, methodPool, annotationSetPool, in makeDexPool() local
75 …return new DexPool(api, stringPool, typePool, protoPool, fieldPool, methodPool, classPool, typeLis… in makeDexPool()
80 MethodPool methodPool, ClassPool classPool, TypeListPool typeListPool, in DexPool() argument
83 classPool, typeListPool, annotationPool, annotationSetPool); in DexPool()
/external/proguard/src/proguard/optimize/info/
DSideEffectMethodMarker.java55 public void visitClassPool(ClassPool classPool) in visitClassPool() argument
64 classPool.classesAccept(this); in visitClassPool()
/external/javassist/src/main/javassist/bytecode/analysis/
DExecutor.java34 private final ClassPool classPool; field in Executor
40 public Executor(ClassPool classPool, ConstPool constPool) { in Executor() argument
42 this.classPool = classPool; in Executor()
547 … CtClass returnType = Descriptor.getReturnType(method.getDescriptor(), classPool); in execute()
926 return Type.get(classPool.get(name)); in getType()
935 classes = Descriptor.getParameterTypes(desc, classPool); in paramTypesFromDesc()
953 clazz = Descriptor.getReturnType(desc, classPool); in returnTypeFromDesc()
998 clazz = Descriptor.toCtClass(info, classPool); in resolveClassInfo()
1000 clazz = classPool.get(info); in resolveClassInfo()
1016 clazz = Descriptor.toCtClass(desc, classPool); in typeFromDesc()

12