Examples of ArrayClass


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

Examples of cn.wensiqun.asmsupport.clazz.ArrayClass

  @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

Examples of cn.wensiqun.asmsupport.clazz.ArrayClass

            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

Examples of scriptingLanguage.variables.ArrayClass

      type = "array:" + type;
      if (last.getCar() instanceof Token)
        head = head.append(Interpreter.eval(caller, (Token) last.getCar(), frame));
      last = last.getNextToken();
    }
    AbstractClass<?> clazz = depth == 0 ? frame.getType(type) : new ArrayClass(type, frame, new Type<Token>(type));
    if (depth != 0) {
      int len = indecies.length();
      if (len > 0) {
        if (len != depth)
          throw new InvalidAssignmentException("Either none of the dimensions specified for an array can have a size or all of them must have a size.");
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.