Home | History | Annotate | Download | only in dex

Lines Matching refs:DexMethod

94 import dex.structure.DexMethod;
451 private void addAnnotationsToAnnotationFields(List<DexMethod> methods,
461 for (DexMethod method : methods) {
471 List<DexMethod> list, Map<String, Object> mappings) {
474 for (DexMethod dexMethod : list) {
475 if (isVisible(dexMethod, visibility)) {
476 annotationfields.add(convertAnnotationField(dexMethod, mappings
477 .get(dexMethod.getName())));
483 private SigAnnotationField convertAnnotationField(DexMethod dexMethod,
485 SigAnnotationField annotationField = new SigAnnotationField(dexMethod
488 annotationField.setModifiers(getModifier(dexMethod.getModifiers()));
491 annotationField.setType(parser.parseNonGenericType(dexMethod
554 * Converts a set of {@link DexMethod} to a set of corresponding
559 * the {@link DexMethod}s to convert
562 private Set<SigConstructor> convertConstructors(List<DexMethod> methods) {
564 for (DexMethod method : methods) {
573 * Converts a set of {@link DexMethod} to a set of corresponding
574 * {@link DexMethod}. This method ignores methods which are constructors.
577 * the {@link DexMethod}s to convert
580 private Set<SigMethod> convertMethods(List<DexMethod> methods) {
582 for (DexMethod method : methods) {
591 * Converts a dexMethod which must be a constructor to the corresponding
594 * @param dexMethod
598 public SigConstructor convertConstructor(DexMethod dexMethod) {
599 String declaringClassName = getClassName(dexMethod.getDeclaringClass()
603 constructor.setModifiers(getModifier(dexMethod.getModifiers()));
604 String declaringClassPackageName = getPackageName(dexMethod
613 constructor.setAnnotations(convertAnnotations(dexMethod
616 if (hasGenericSignature(dexMethod)) {
620 getGenericSignature(dexMethod));
627 List<DexParameter> dexParameters = dexMethod.getParameters();
647 convertNonGenericExecutableMember(constructor, dexMethod);
670 addExceptions(constructor, dexMethod);
674 public SigMethod convertMethod(DexMethod dexMethod) {
675 SigMethod method = new SigMethod(dexMethod.getName());
676 method.setModifiers(getModifier(dexMethod.getModifiers()));
678 String declaringClassPackageName = getPackageName(dexMethod
680 String declaringClassName = getClassName(dexMethod.getDeclaringClass()
687 method.setAnnotations(convertAnnotations(dexMethod.getAnnotations()));
689 if (hasGenericSignature(dexMethod)) {
692 parser.parseForMethod(method, getGenericSignature(dexMethod));
698 List<DexParameter> dexParameters = dexMethod.getParameters();
718 convertNonGenericExecutableMember(method, dexMethod);
721 ITypeReference type = parser.parseNonGenericReturnType(dexMethod
725 addExceptions(method, dexMethod);
730 DexMethod dexMethod) {
731 if (declaresExceptions(dexMethod)) {
732 String exceptionSignature = getExceptionSignature(dexMethod);
749 DexMethod dexMethod) {
750 List<DexParameter> dexParameters = dexMethod.getParameters();
769 // if (declaresExceptions(dexMethod)) {
770 // String exceptionSignature = getExceptionSignature(dexMethod);