Examples of insertElementAt()


Examples of java.util.Vector.insertElementAt()

    int argright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;
    Expression arg = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;
    int arglleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;
    int arglright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;
    Vector argl = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;
     argl.insertElementAt(arg, 0); RESULT = argl;
              CUP$XPathParser$result = new java_cup.runtime.Symbol(36/*NonemptyArgumentList*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);
            }
          return CUP$XPathParser$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
 
View Full Code Here

Examples of java.util.Vector.insertElementAt()

    int pright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;
    Expression p = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;
    int ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;
    int ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;
    Vector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;
     pp.insertElementAt(p, 0); RESULT = pp;
              CUP$XPathParser$result = new java_cup.runtime.Symbol(35/*Predicates*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);
            }
          return CUP$XPathParser$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
 
View Full Code Here

Examples of java.util.Vector.insertElementAt()

    final LocationPathPattern lppToCompare =
        (LocationPathPattern)patterns.elementAt(i);

    if (pattern.noSmallerThan(lppToCompare)) {
        inserted = true;
        patterns.insertElementAt(pattern, i);
        break;
    }
      }
      if (inserted == false) {
    patterns.addElement(pattern);
View Full Code Here

Examples of java.util.Vector.insertElementAt()

            }
       
            int nr = pInit_.getOldFilesSize();
            _oldFilesCount = nr;
            for( ; eOldFiles.hasMoreElements(); ) {
                vRetVal.insertElementAt("" + nr + " " +
                                        Util.firstCharToUpperCase
                                        (((FileObject)eOldFiles.
                                          nextElement())
                                         .getName()),
                                        0);
View Full Code Here

Examples of java.util.Vector.insertElementAt()

               
                // --- Alte Dateien in Menu einf�gen ---
               
                int menuSlot = vFileMenu.size() - 1;
                if (menuSlot > 1) {
                    vFileMenu.insertElementAt("--------", menuSlot);
                    menuSlot++;
                }
                _oldFilesStartIndex = menuSlot-1;
               
                Vector vOldFileItems = _getOldFileItems(pInit_);
View Full Code Here

Examples of java.util.Vector.insertElementAt()

            {
                if (((Boolean)this.added.elementAt(i)).booleanValue())
                {
                    o.insertElementAt(this.ordering.elementAt(i), count);
                    v.insertElementAt(this.values.elementAt(i), count);
                    a.insertElementAt(this.added.elementAt(i), count);
                    count++;
                }
                else
                {
                    o.insertElementAt(this.ordering.elementAt(i), 0);
View Full Code Here

Examples of java.util.Vector.insertElementAt()

                }
                else
                {
                    o.insertElementAt(this.ordering.elementAt(i), 0);
                    v.insertElementAt(this.values.elementAt(i), 0);
                    a.insertElementAt(this.added.elementAt(i), 0);
                    count = 1;
                }
            }

            this.ordering = o;
View Full Code Here

Examples of java.util.Vector.insertElementAt()

          int offset = 0;
          for (int eji = theJDKId; eji > envJDKId; eji--) {
            offset += envModuleCount[eji];
          }

          implementations.insertElementAt(possibleModule, offset);
          envModuleCount[envJDKId]++;

        }
        else {
          // just add to the end of the vector
View Full Code Here

Examples of java.util.Vector.insertElementAt()

  public void test_insertElementAtLjava_lang_ObjectI() {
    // Test for method void
    // java.util.Vector.insertElementAt(java.lang.Object, int)
    Vector v = vectorClone(tVector);
    String prevElement = (String) v.elementAt(99);
    v.insertElementAt("Inserted Element", 99);
    assertEquals("Element not inserted", "Inserted Element", ((String) v.elementAt(99))
        );
    assertTrue("Elements shifted incorrectly", ((String) v.elementAt(100))
        .equals(prevElement));
    v.insertElementAt(null, 20);
View Full Code Here

Examples of java.util.Vector.insertElementAt()

    v.insertElementAt("Inserted Element", 99);
    assertEquals("Element not inserted", "Inserted Element", ((String) v.elementAt(99))
        );
    assertTrue("Elements shifted incorrectly", ((String) v.elementAt(100))
        .equals(prevElement));
    v.insertElementAt(null, 20);
    assertNull("null not inserted", v.elementAt(20));
  }

  /**
   * @tests java.util.Vector#isEmpty()
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.