parameterTypes = new ArrayList<Type>(); for (MethodParameter param : method.getParameters()) { parameterNames.add(param.getName()); parameterTypes.add(DexType.toSoot(param.getType()));
private void internDebug(@Nonnull Method method) { for (MethodParameter param: method.getParameters()) { String paramName = param.getName(); if (paramName != null) { dexPool.stringSection.intern(paramName); } } MethodImplementation methodImpl = method.getImplementation(); if (methodImpl != null) { for (DebugItem debugItem: methodImpl.getDebugItems()) { switch (debugItem.getDebugItemType()) { case DebugItemType.START_LOCAL: StartLocal startLocal = (StartLocal)debugItem; dexPool.stringSection.internNullable(startLocal.getName()); dexPool.typeSection.internNullable(startLocal.getType()); dexPool.stringSection.internNullable(startLocal.getSignature()); break; case DebugItemType.SET_SOURCE_FILE: dexPool.stringSection.internNullable(((SetSourceFile) debugItem).getSourceFile()); break; } } } }
int i = 0; for (MethodParameter p : method.getParameters()) { String name = p.getName(); if (name != null) { parameterNames = new String[method.getParameters().size()];
for (MethodParameter parameter: parameters) { String parameterType = parameter.getType(); String parameterName = parameter.getName(); Collection<? extends Annotation> annotations = parameter.getAnnotations(); if ((options.debugInfo && parameterName != null) || annotations.size() != 0) {
@Override @Nullable public String getName() { return methodParameter.getName(); }
@Override @Nullable public String getName() { return methodParameter.getName(); }
@Override @Nullable public String getName() { return methodParameter.getName(); }
public static ImmutableMethodParameter of(MethodParameter methodParameter) { if (methodParameter instanceof ImmutableMethodParameter) { return (ImmutableMethodParameter)methodParameter; } return new ImmutableMethodParameter( methodParameter.getType(), methodParameter.getAnnotations(), methodParameter.getName()); }
public static ImmutableMethodParameter of(MethodParameter methodParameter) { if (methodParameter instanceof ImmutableMethodParameter) { return (ImmutableMethodParameter)methodParameter; } return new ImmutableMethodParameter( methodParameter.getType(), methodParameter.getAnnotations(), methodParameter.getName()); }
public static ImmutableMethodParameter of(MethodParameter methodParameter) { if (methodParameter instanceof ImmutableMethodParameter) { return (ImmutableMethodParameter)methodParameter; } return new ImmutableMethodParameter( methodParameter.getType(), methodParameter.getAnnotations(), methodParameter.getName()); }
@Nonnull private BuilderMethodParameter internMethodParameter(@Nonnull MethodParameter methodParameter) { return new BuilderMethodParameter( typeSection.internType(methodParameter.getType()), stringSection.internNullableString(methodParameter.getName()), annotationSetSection.internAnnotationSet(methodParameter.getAnnotations())); }
@Nonnull private BuilderMethodParameter internMethodParameter(@Nonnull MethodParameter methodParameter) { return new BuilderMethodParameter( context.typePool.internType(methodParameter.getType()), context.stringPool.internNullableString(methodParameter.getName()), context.annotationSetPool.internAnnotationSet(methodParameter.getAnnotations())); }
@Nonnull private BuilderMethodParameter internMethodParameter(@Nonnull MethodParameter methodParameter) { return new BuilderMethodParameter( typeSection.internType(methodParameter.getType()), stringSection.internNullableString(methodParameter.getName()), annotationSetSection.internAnnotationSet(methodParameter.getAnnotations())); }
@Override protected Iterable<? extends MethodParameter> reParameters(final List<? extends MethodParameter> paramters) { final List<ImmutableMethodParameter> list = new ArrayList<ImmutableMethodParameter>(); for (MethodParameter methodParameter : paramters) { boolean isBasic = false; if (basicType.containsKey(methodParameter.getType())) { isBasic = true; } list.add(new ImmutableMethodParameter( isBasic ? methodParameter.getType() : DefineUtils.getDefineClassName(classProcessor.classProcess(DefineUtils.getDalvikClassName(methodParameter.getType())).className,methodParameter.getType().startsWith("[")), methodParameter.getAnnotations(), methodParameter.getName())); } return new Iterable<ImmutableMethodParameter>() { @Override public Iterator<ImmutableMethodParameter> iterator() { return list.iterator(); } }; } }
private void internDebug(@Nonnull Method method) { for (MethodParameter param: method.getParameters()) { String paramName = param.getName(); if (paramName != null) { dexPool.stringSection.intern(paramName); } } MethodImplementation methodImpl = method.getImplementation(); if (methodImpl != null) { for (DebugItem debugItem: methodImpl.getDebugItems()) { switch (debugItem.getDebugItemType()) { case DebugItemType.START_LOCAL: StartLocal startLocal = (StartLocal)debugItem; dexPool.stringSection.internNullable(startLocal.getName()); dexPool.typeSection.internNullable(startLocal.getType()); dexPool.stringSection.internNullable(startLocal.getSignature()); break; case DebugItemType.SET_SOURCE_FILE: dexPool.stringSection.internNullable(((SetSourceFile) debugItem).getSourceFile()); break; } } } }
private void internDebug(@Nonnull Method method) { for (MethodParameter param: method.getParameters()) { String paramName = param.getName(); if (paramName != null) { stringPool.intern(paramName); } } MethodImplementation methodImpl = method.getImplementation(); if (methodImpl != null) { for (DebugItem debugItem: methodImpl.getDebugItems()) { switch (debugItem.getDebugItemType()) { case DebugItemType.START_LOCAL: StartLocal startLocal = (StartLocal)debugItem; stringPool.internNullable(startLocal.getName()); typePool.internNullable(startLocal.getType()); stringPool.internNullable(startLocal.getSignature()); break; case DebugItemType.SET_SOURCE_FILE: stringPool.internNullable(((SetSourceFile) debugItem).getSourceFile()); break; } } } }
for (MethodParameter parameter: parameters) { String parameterType = parameter.getType(); String parameterName = parameter.getName(); Collection<? extends Annotation> annotations = parameter.getAnnotations(); if (parameterName != null || annotations.size() != 0) {
for (MethodParameter parameter : parameters) { String parameterType = parameter.getType(); String parameterName = parameter.getName(); Collection<? extends Annotation> annotations = parameter.getAnnotations(); if (parameterName != null || annotations.size() != 0) {
for (MethodParameter parameter: parameters) { String parameterType = parameter.getType(); String parameterName = parameter.getName(); Collection<? extends Annotation> annotations = parameter.getAnnotations(); if ((options.debugInfo && parameterName != null) || annotations.size() != 0) {