Package cn.wensiqun.asmsupport.definition.method

Examples of cn.wensiqun.asmsupport.definition.method.Method


      }
    }
   
    me = new MethodEntity(name, owner, owner, arguments, argNames, returnClass, exces, access);

    method = new Method(me, context, methodBody, mtdCrtMode);
    if(method.getMethodEntity().getName().equals(ASConstant.INIT)){
      owner.addConstructor(method);
    }else{
      owner.addMethod(method);
    }
View Full Code Here


        for (int i = 0; i < arguments.length; i++) {
            argumentClassList.add(arguments[i].getParamterizedType());
        }
        argumentClassList.toArray(argumentClasses);
       
      Method currentMethod = block.getMethod();
        if(currentMethod.getMode() == ASConstant.METHOD_CREATE_MODE_MODIFY && name.endsWith(ASConstant.METHOD_PROXY_SUFFIX)){
          mtdEntity = (MethodEntity) currentMethod.getMethodEntity().clone();
            mtdEntity.setName(name);
        }else{
            // 如果是构造方法则返回类型为自己本身
            if (name.equals(METHOD_NAME_INIT)) {
                mtdEntity = methodOwner.availableConstructor(block.getMethodOwner(), argumentClasses);
View Full Code Here

TOP

Related Classes of cn.wensiqun.asmsupport.definition.method.Method

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.