Examples of ArrayValue


Examples of cn.wensiqun.asmsupport.operators.array.ArrayValue

           
            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 com.caucho.quercus.env.ArrayValue

      else if (value instanceof Number)
        return new long[] { ((Number) value).longValue() };
      else if (value == null)
        return null;
      else if (value instanceof ArrayValue) {
        ArrayValue array = (ArrayValue) value;
       
        long []result = new long[array.getSize()];
       
        for (int i = 0; i < result.length; i++)
          result[i] = array.get(LongValue.create(i)).toLong();
       
        return result;
      }
      else {
        try {
View Full Code Here

Examples of com.dubture.doctrine.annotation.model.ArrayValue

        ObjectValue objectValue = (ObjectValue) annotation.getArgumentValue("defaults");

        assertEquals("\\s+", objectValue.getArgumentValue("_format").getValue());

        assertEquals(ArgumentValueType.ARRAY, annotation.getArgumentValue("requirements").getType());
        ArrayValue arrayValue = (ArrayValue) annotation.getArgumentValue("requirements");

        assertEquals("one", arrayValue.getArgumentValue(0).getValue());
        assertEquals("two", arrayValue.getArgumentValue(1).getValue());
    }
View Full Code Here

Examples of etch.bindings.java.transport.ArrayValue

    return sv;
  }
 
  private ArrayValue readArray( Validator v ) throws IOException
  {
    ArrayValue av = startArray();
    readValues( av, v );
    endArray( av );
    return av;
  }
View Full Code Here

Examples of etch.bindings.java.transport.ArrayValue

   
    int length = readLength();
   
    Object array = allocArrayValue( type, customStructType, dim, length );
   
    return new ArrayValue( array, type, customStructType, dim );
  }
View Full Code Here

Examples of etch.bindings.java.transport.ArrayValue

  public ArrayValue startArray()
  {
    TagElement te = stack.peek();
    elementList.push( te.getChildren() );
    return new ArrayValue( null );
  }
View Full Code Here

Examples of etch.bindings.java.transport.ArrayValue

    }
    else
      customStructType = null;

//    System.out.printf( "toArrayValue: type %d customStructType %d dim %d\n", type, customStructType, dim );
    return new ArrayValue( value, typeCode, customStructType, dim );
  }
View Full Code Here

Examples of net.sf.rej.java.attribute.annotations.ArrayValue

    }
   
    private void drawElementValue(JavaBytecodeSyntaxDrawer sd, ElementValue ev, Imports ia) {
      if (ev instanceof ArrayValue) {
        ArrayValue av = (ArrayValue)ev;
        List<ElementValue> values = av.getArray();
        boolean first = true;
        sd.drawDefault("{");
        for (ElementValue value : values) {
          if (!first) {
            sd.drawDefault(", ");
View Full Code Here

Examples of org.apache.axis2.corba.idl.values.ArrayValue

                children.add(extractValue(collectionType.getDataType(), paramsIter.next()));
            }

            AbstractCollectionValue collectionValue;
            if (collectionType.isArray()) {
                collectionValue = new ArrayValue((ArrayType) collectionType);
            } else if (collectionType.isSequence()) {
                collectionValue = new SequenceValue((SequenceType) collectionType);
            } else {
                return null;
            }
View Full Code Here

Examples of org.apache.etch.bindings.java.transport.ArrayValue

    return sv;
  }
 
  private ArrayValue readArray( Validator v ) throws IOException
  {
    ArrayValue av = startArray();
    readValues( av, v );
    endArray( av );
    return av;
  }
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.