Examples of MethodDetails


Examples of org.deuce.transform.asm.storage.MethodDetails

  }

  @Override
  public MethodVisitor visitMethod(int access, String name, String desc,
      String signature, String[] exceptions) {
    MethodDetails mD = new MethodDetails(access, name, desc, signature, exceptions, "r");
    return new MethodDataCollectorAdaptor(details, mD, className);
  }
View Full Code Here

Examples of org.deuce.transform.asm.storage.MethodDetails

    //TODO: Use Hash Map,Reduce checking time; Check for don't touch Method
    boolean donotTouch = false;
    ArrayList<Object> donotTouchMethodes = Details.get(className + Names.DonotTouchMethodDetails);
    if(donotTouchMethodes != null){
      for(Object md: donotTouchMethodes){
        MethodDetails mD = (MethodDetails) md;
        if(mD.name.equals(name) && mD.desc.equals(desc)){
          donotTouch = true;
          break;
        }
      }
View Full Code Here

Examples of org.deuce.transform.asm.storage.MethodDetails

    if(rmdtl == null){
      System.err.println("Trying to Write the Proxy Remote Method without any Details, Not Supported Currently");
    }
    else{
      for(Object md : rmdtl){
        MethodDetails mD = (MethodDetails) md;
        //Get new Arguments
        Type[] src = Type.getArgumentTypes(mD.desc);
        Type rType = Type.getReturnType(mD.desc);
        Type[] mdesc = new Type[src.length + 2];
        mdesc[0] = Type.getType(Object.class);
View Full Code Here

Examples of org.deuce.transform.asm.storage.MethodDetails

    if(rmdtl == null){
      System.err.println("Trying to Write the Proxy Remote Method without any Details, Not Supported Currently");
      return null;
    }
    for(Object md: rmdtl){
      MethodDetails mD = (MethodDetails) md;
      Type[] src = Type.getArgumentTypes(mD.desc);
      Type rType = Type.getReturnType(mD.desc);
      //For Remote Method
      Type[] rmdesc = new Type[src.length + 2];
      rmdesc[0] = Type.getType(Object.class);
      rmdesc[1] = Type.getType(ControlContext.class);
      System.arraycopy(src, 0, rmdesc, 2, src.length);
      //For Deuce Method
      Type[] drmdesc = new Type[src.length + 1];
      System.arraycopy(src, 0, drmdesc, 0, src.length);
      drmdesc[src.length] = Type.getType(ControlContext.class);
     
      //Get new Exceptions
      String[] exceptions;
      if(mD.exceptions != null){
        exceptions = new String[mD.exceptions.length + 1];
        exceptions[0] = Names.RMIException;
        System.arraycopy(mD.exceptions, 0, exceptions, 1, mD.exceptions.length)
      }else{
        String[] exceptions2 = {Names.RMIException};
        exceptions = exceptions2;
      }
      String rdesc = Type.getMethodDescriptor(rType, rmdesc);
      String ddesc = Type.getMethodDescriptor(rType, drmdesc);
      MethodDetails nrmD = new MethodDetails(mD.access, mD.name, rdesc, mD.signature, exceptions,mD.accessType);
      MethodDetails ndmD = new MethodDetails(mD.access, mD.name, ddesc, mD.signature, exceptions,mD.accessType);
     
      RemoteMethodDetails nmD = new RemoteMethodDetails(nrmD, ndmD);
      urmdtl.add(nmD);
    }   
    return urmdtl;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.