Home | History | Annotate | Download | only in dex

Lines Matching refs:dexClass

89 import dex.structure.DexClass;
116 private Map<String, DexClass> dexNameToDexClass;
148 Map<SigPackage, Set<DexClass>> packageToDexClasses =
149 new HashMap<SigPackage, Set<DexClass>>();
151 dexNameToDexClass = new HashMap<String, DexClass>();
154 List<DexClass> definedClasses = dexFile.getDefinedClasses();
155 for (DexClass dexClass : definedClasses) {
157 dexNameToDexClass.put(dexClass.getName(), dexClass);
159 String dexName = dexClass.getName();
166 Set<DexClass> classes = new HashSet<DexClass>();
169 Set<DexClass> classes = packageToDexClasses.get(aPackage);
170 classes.add(dexClass);
195 DexClass dexClass = dexNameToDexClass.get(dexName);
197 if (declaresMemberClasses(dexClass)) {
199 getMemberClassNames(dexClass);
229 Map<String, DexClass> dexNameToDexClass) {
233 DexClass dexClass = dexNameToDexClass.get(dexName);
234 if (isEnclosingClass(dexClass)) {
236 DexClass declaringDexClass = dexNameToDexClass
260 * Converts a set of {@link DexClass} objects to a set of the corresponding
264 * the {@link DexClass} objects
265 * @return a set of {@link DexClass} objects
267 protected Set<SigClassDefinition> convertClasses(Set<DexClass> dexClasses) {
269 for (DexClass dexClass : dexClasses) {
271 if (convertAnyWay(dexClass)) {
272 SigClassDefinition sigCLass = convertClass(dexClass);
273 if (isVisible(dexClass, visibility)) {
282 * Converts a {@link DexClass} to the corresponding
285 * @param dexClass
286 * the {@link DexClass} to convert
289 protected SigClassDefinition convertClass(DexClass dexClass) {
290 assert dexClass != null;
292 String packageName = getPackageName(dexClass.getName());
293 String className = getClassName(dexClass.getName());
296 sigClass.setKind(getKind(dexClass));
298 Set<Modifier> modifiers = getModifier(getClassModifiers(dexClass));
301 if (isEnclosingClass(dexClass)) {
302 String declaringClassDexName = getEnclosingClassName(dexClass);
311 if (hasGenericSignature(dexClass)) {
314 parser.parseForClass(sigClass, getGenericSignature(dexClass));
331 if (isJavaLangObject(dexClass)) {
339 String superClassPackageName = getPackageName(dexClass
341 String superClassName = getClassName(dexClass
348 List<String> interfaceDexNames = dexClass.getInterfaces();
362 Set<SigConstructor> constructors = convertConstructors(dexClass
373 if (isAnnotation(dexClass)) {
374 Map<String, Object> mappings = getDefaultValueMapping(dexClass);
376 dexClass.getMethods(), mappings);
379 addAnnotationsToAnnotationFields(dexClass.getMethods(),
386 // HashSet<IAnnotationField>(convertAnnotationFields(dexClass)));
387 } else if (isEnum(dexClass)) {
391 for (DexField dexField : dexClass.getFields()) {
404 methods = convertMethods(dexClass.getMethods());
407 sigClass.setFields(new HashSet<IField>(convertFields(dexClass
411 methods = convertMethods(dexClass.getMethods());
420 sigClass.setAnnotations(convertAnnotations(dexClass.getAnnotations()));
426 private Map<String, Object> getDefaultValueMapping(DexClass dexClass) {
428 if (hasAnnotationDefaultSignature(dexClass)) {
430 DexAnnotation annotation = getDefaultMappingsAnnotation(dexClass);
935 DexClass dexClass = dexNameToDexClass.get(dexName);
936 return convertClass(dexClass);