Package com.litecoding.smali2java.entity.java

Examples of com.litecoding.smali2java.entity.java.MethodCall


      //maybe this() or super() call
      MethodRef methodRef = (MethodRef) args.get(args.size() - 1);
     
      if(methodRef.isConstructor()) {
        //this is this() or super() call
        MethodCall methodCall = new MethodCall(MethodCall.CALL_DIRECT,
            methodRef.getClassName(),
            methodRef.getName());
        Renderable entity = methodCall;
       
        methodCall.setConstructorCall(true);
        if(smaliClass.getSuperClassName().equals(methodRef.getClassName()))
          methodCall.setSuperCall(true);
        else
          methodCall.setThisCall(true);
       
        RegisterGroup regGroup = (RegisterGroup) args.get(0);
        boolean skipElement = true;
        for(SmaliCodeEntity regEntity : regGroup.getArguments()) {
          if(skipElement) {
            skipElement = false;
            continue;
          }
          Variable var = new Variable();
          var.setName(((Register)regEntity).getName());
          methodCall.getParams().add(var);
        }
       
        if(smaliClass.getSuperClassName().equals("Ljava/lang/Object;"))
          entity = new Comment(methodCall.render());
       
        entities.add(entity);
      }
    }
   
View Full Code Here

TOP

Related Classes of com.litecoding.smali2java.entity.java.MethodCall

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.