Package cn.wensiqun.asmsupport.clazz

Examples of cn.wensiqun.asmsupport.clazz.ArrayClass


                }
            }else{
                a = new AClass[]{AClass.OBJECT_ACLASS};
            }
        } else if (as.isArray()) {
            ArrayClass ac = (ArrayClass) as;
            AClass rootType = ac.getRootComponentClass();
           
            if(rootType.isPrimitive()){
                a = new AClass[2];
                a[0] = AClass.CLONEABLE_ACLASS;
                a[1] = AClass.SERIALIZABLE_ACLASS;
            }else{
                AClass[] rootSupers = getDirectSuperType(rootType);
                if(rootSupers != null){
                    a = new AClass[rootSupers.length];
                    for(int i=0; i<a.length; i++){
                        a[i] = AClassFactory.getArrayClass(rootSupers[i], ac.getDimension());
                    }
                }else{
                    a = new AClass[2];
                    a[0] = AClass.CLONEABLE_ACLASS;
                    a[1] = AClass.SERIALIZABLE_ACLASS;
View Full Code Here


  @Override
    public void executing() {
    if(!useByOther){
            throw new RuntimeException(this.toString() + " not use by other operator");
        }
        ArrayClass cls = (ArrayClass) arrayReference.getParamterizedType();
        if(parDims != null && parDims.length > cls.getDimension()){
            throw new ArrayOperatorException(toString() + " dimension not enough!");
        }
        log.debug("start load array value");
        getValue();
    }
View Full Code Here

            int fixedArgsLen = mtdEntity.getArgClasses().length - 1;//argumentClasses.length - 1;
                Parameterized[] fixedArgs = new Parameterized[fixedArgsLen];
                System.arraycopy(arguments, 0, fixedArgs, 0, fixedArgsLen);

                ArrayValue variableVarifyArauments;
                ArrayClass arrayClass = (ArrayClass)mtdEntity.getArgClasses()[mtdEntity.getArgClasses().length - 1];
                variableVarifyArauments = block.newArrayWithValue(arrayClass,
                       (Parameterized[]) ArrayUtils.subarray(arguments, fixedArgsLen , arguments.length));
                variableVarifyArauments.asArgument();
               
                arguments = (Parameterized[]) ArrayUtils.add(fixedArgs, variableVarifyArauments);
View Full Code Here

TOP

Related Classes of cn.wensiqun.asmsupport.clazz.ArrayClass

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.