Examples of Array


Examples of anvil.core.Array

  }
 

  public Any eval()
  {
    Array array = new Array();
    int n = childs();
    for(int i=0; i<n; i++) {
      Node node = getChild(i);
      if (node.typeOf() == Node.EXPR_MAPPING) {
        MappingNode mapnode = (MappingNode)node;
        array.append(mapnode.getKey(), mapnode.getValue());
      } else {
        array.append(node.eval());
      }
    }
    return array;
  }
View Full Code Here

Examples of bytecodeparser.analysis.stack.Array

      for(int i = 0; i < dimensions; i++)
        stack.pop();
    }
    if(size > -1)
      stack.push(new TrackableArray(signature, size));
    else stack.push(new Array(signature));
  }
View Full Code Here

Examples of co.nstant.in.cbor.model.Array

        add(tag(value));
        return this;
    }

    public ArrayBuilder<CborBuilder> startArray() {
        Array array = new Array();
        array.setChunked(true);
        add(array);
        return new ArrayBuilder<CborBuilder>(this, array);
    }
View Full Code Here

Examples of com.badlogic.gdx.utils.Array

  public void clearDebugRectangles (TableLayout layout) {
    if (layout.debugRects != null) layout.debugRects.clear();
  }

  public void addDebugRectangle (TableLayout layout, int type, int x, int y, int w, int h) {
    if (layout.debugRects == null) layout.debugRects = new Array();
    layout.debugRects.add(new DebugRect(type, x, y, w, h));
  }
View Full Code Here

Examples of com.ebay.erl.mobius.core.model.Array

  @Override
  public void consume(Tuple tuple)
  {
    if( this.array==null )
    {
      this.array = new Array(this.delimiter);
    }
    Object value = tuple.get(this.inputColumnName);
   
    byte type = Tuple.getType(value);
    if( type==Tuple.RESULT_WRAPPER_TYPE )
    {
      // result coming from Combiner
      ResultWrapper wrapper = (ResultWrapper)value;
      Array wrapped = (Array)wrapper.getCombinedResult();
      for( Object elem:wrapped )
      {
        array.add(elem);
      }
    }
View Full Code Here

Examples of com.objectspace.jgl.Array

   *
   * @param double the value to be compared
   * @return FzySet[] of all sets that this value is contained.
   */
  public com.objectspace.jgl.Array containsValue(double value){
    Array setArray = new Array(0);
    try {
      FzySet currentSet;
      for (int i = 0; i < sets.size(); i++) {
        currentSet = (FzySet)sets.elementAt(i);
        if (currentSet.doesContain(value)) {
          setArray.add((FzySet)sets.elementAt(i));
        }
      }
      if (setArray.size() > 1) {
        BinaryPredicate bp = (BinaryPredicate)
        new MembershipGreaterThan((ObservableImpl) this, value);
        com.objectspace.jgl.algorithms.Sorting.sort(setArray, bp);
      }
    } catch (Exception e) {
View Full Code Here

Examples of de.ailis.jollada.model.Array

    public void testArray()
    {
        final DataFlowSource source = new DataFlowSource("ID");
        source.setArray(null);
        assertNull(source.getArray());
        final Array array = new IntArray(16);
        source.setArray(array);
        assertSame(array, source.getArray());
        source.setArray(null);
        assertNull(source.getArray());
    }
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.Array

public abstract class ArrayNumberQuestion extends edu.cmu.cs.stage3.alice.core.question.NumberQuestion {
  public final ArrayProperty array = new ArrayProperty( this, "array", null );
  //protected abstract double getValue( Array array );
  protected abstract int getValue( Array array );
  public Object getValue() {
    Array arrayValue = array.getArrayValue();
    if( arrayValue!=null ) {
            return new Integer( getValue( arrayValue ) );
    } else {
      return null;
    }
View Full Code Here

Examples of eu.admire.dispel.parser.expression.Array

        switch (context)
        {
        case ARRAY_INITIALISER:
        {
            ArrayStrategy array = (ArrayStrategy)strategy;
            Array a = new Array();
            for (Expression expression : array.getExpressions())
            {
                a.add(expression);
            }
            mExpression = a;
            break;
        }
        }
View Full Code Here

Examples of flex2.compiler.mxml.rep.Array

    Model arguments = builder.graph;
        op.setProperty(ARGUMENTS, arguments);
        arguments.setParentIndex(ARGUMENTS);
        arguments.setParent(op);

        Array argNames = new Array(document, op, node.beginLine, typeTable.objectType);
        op.setProperty(ARGUMENT_NAMES, argNames);
        argNames.setParentIndex(ARGUMENT_NAMES);

        for (Iterator propNames = arguments.getProperties().keySet().iterator(); propNames.hasNext();)
        {
            String s = (String)propNames.next();
            argNames.addEntry(s, op.getXmlLineNumber());
        }
    }
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.