org.jf.dexlib2.iface.Method.getParameterTypes()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(191)

本文整理了Java中org.jf.dexlib2.iface.Method.getParameterTypes()方法的一些代码示例,展示了Method.getParameterTypes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Method.getParameterTypes()方法的具体详情如下:
包路径:org.jf.dexlib2.iface.Method
类名称:Method
方法名:getParameterTypes

Method.getParameterTypes介绍

暂无

代码示例

代码示例来源:origin: JesusFreke/smali

@Nonnull @Override public List<? extends CharSequence> getParameterTypes() {
  return method.getParameterTypes();
}

代码示例来源:origin: CalebFenton/simplify

private String buildDescriptor(Method method) {
  StringBuilder sb = new StringBuilder();
  sb.append('(');
  method.getParameterTypes().forEach(sb::append);
  sb.append(')');
  sb.append(method.getReturnType());
  return sb.toString();
}

代码示例来源:origin: Sable/soot

protected List<Type> getParameterTypes(final Method method) {
 // retrieve all parameter types
 List<Type> parameterTypes = new ArrayList<Type>();
 if (method.getParameters() != null) {
  List<? extends CharSequence> parameters = method.getParameterTypes();
  for (CharSequence t : parameters) {
   Type type = DexType.toSoot(t.toString());
   parameterTypes.add(type);
  }
 }
 return parameterTypes;
}

代码示例来源:origin: org.smali/dexlib2

@Nonnull @Override public List<? extends CharSequence> getParameterTypes() {
  return method.getParameterTypes();
}

代码示例来源:origin: testwhat/SmaliEx

@Override @Nonnull public List<? extends CharSequence> getParameterTypes() {
  return method.getParameterTypes();
}

代码示例来源:origin: org.smali/dexlib2

@Override @Nonnull public List<? extends CharSequence> getParameterTypes() {
  return method.getParameterTypes();
}

代码示例来源:origin: KB5201314/ZjDroid

@Override @Nonnull public List<? extends CharSequence> getParameterTypes() {
  return method.getParameterTypes();
}

代码示例来源:origin: com.taobao.android/dex_patch

private String getMethodFullName(Method method) {
  StringBuilder stringBuilder = new StringBuilder();
  String methodName = method.getName();
  stringBuilder.append(methodName).append("(");
  for (CharSequence c:method.getParameterTypes()){
    stringBuilder.append(c);
  }
  stringBuilder.append(")").append(method.getReturnType());
  return stringBuilder.toString();
}

代码示例来源:origin: testwhat/SmaliEx

private void listClassVtable(ClassProto classProto) throws IOException {
  List<Method> methods = classProto.getVtable();
  String className = "Class " + classProto.getType() + " extends " + classProto.getSuperclass() +
      " : " + methods.size() + " methods\n";
  System.out.write(className.getBytes());
  for (int i = 0; i < methods.size(); i++) {
    Method method = methods.get(i);
    String methodString = i + ":" + method.getDefiningClass() + "->" + method.getName() + "(";
    for (CharSequence parameter : method.getParameterTypes()) {
      methodString += parameter;
    }
    methodString += ")" + method.getReturnType() + "\n";
    System.out.write(methodString.getBytes());
  }
  System.out.write("\n".getBytes());
}

代码示例来源:origin: org.smali/baksmali

private void listClassVtable(ClassProto classProto) throws IOException {
  List<Method> methods = classProto.getVtable();
  String className = "Class " + classProto.getType() + " extends " + classProto.getSuperclass() +
      " : " + methods.size() + " methods\n";
  System.out.write(className.getBytes());
  for (int i = 0; i < methods.size(); i++) {
    Method method = methods.get(i);
    String methodString = i + ":" + method.getDefiningClass() + "->" + method.getName() + "(";
    for (CharSequence parameter : method.getParameterTypes()) {
      methodString += parameter;
    }
    methodString += ")" + method.getReturnType() + "\n";
    System.out.write(methodString.getBytes());
  }
  System.out.write("\n".getBytes());
}

代码示例来源:origin: KB5201314/ZjDroid

for (CharSequence parameter: method.getParameterTypes()) {
  methodString += parameter;

代码示例来源:origin: com.taobao.android/dex_patch

List<? extends CharSequence> parameters = method.getParameterTypes();
if (methods.size() > 0) {
  for (Method modifyMethod : methods) {
    List<? extends CharSequence> modifyParameters = modifyMethod.getParameterTypes();
    if (parameters.size() != modifyParameters.size()||!isEqualObj(parameters,modifyParameters)){
      continue;

相关文章