Package nallar.tickthreading.patcher.mappings

Examples of nallar.tickthreading.patcher.mappings.MethodDescription


    this.mappings = mappings;
  }

  public void transformClassStaticMethods(CtClass ctClass, String className) {
    for (CtMethod ctMethod : ctClass.getDeclaredMethods()) {
      MethodDescription methodDescription = new MethodDescription(className, ctMethod.getName(), ctMethod.getSignature());
      MethodDescription mapped = mappings.map(methodDescription);
      if (mapped != null && !mapped.name.equals(ctMethod.getName())) {
        if ((ctMethod.getModifiers() & Modifier.STATIC) == Modifier.STATIC) {
          try {
            CtMethod replacement = CtNewMethod.copy(ctMethod, ctClass, null);
            ctMethod.setName(mapped.name);
View Full Code Here


              after = field.substring(field.indexOf('.'));
              field = field.substring(0, field.indexOf('.'));
              if (!field.isEmpty() && (field.charAt(0) == '$') && prefix.isEmpty()) {
                ArrayList<String> parameterList = new ArrayList<String>();
                for (MethodDescription methodDescriptionOriginal : methodDescriptionList) {
                  MethodDescription methodDescription = mappings.rmap(mappings.map(methodDescriptionOriginal));
                  methodDescription = methodDescription == null ? methodDescriptionOriginal : methodDescription;
                  int i = 0;
                  for (String parameter : methodDescription.getParameterList()) {
                    if (parameterList.size() <= i) {
                      parameterList.add(parameter);
                    } else if (!parameterList.get(i).equals(parameter)) {
                      parameterList.set(i, null);
                    }
View Full Code Here

TOP

Related Classes of nallar.tickthreading.patcher.mappings.MethodDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.