/** * Pushes the specified object onto the top of the stack. * * @param object * The object to be added on top of the stack. * @return the object argument. * @see #peek * @see #pop */ public E push(E object) { addElement(object); return object; }
/** Create an XPath from some steps. steps.lenght must be >= 1 */ private XPath(boolean isAbsolute, Step[] steps) { for (int i = 0; i < steps.length; ++i) steps_.addElement(steps[i]); absolute_ = isAbsolute; string_ = null; }
/** * Pushes the specified object onto the top of the stack. * * @param object * The object to be added on top of the stack. * @return the object argument. * @see #peek * @see #pop */ public E push(E object) { addElement(object); return object; }
/** * Pushes the specified object onto the top of the stack. * * @param object * The object to be added on top of the stack. * @return the object argument. * @see #peek * @see #pop */ public E push(E object) { addElement(object); return object; }
/** Create an XPath from some steps. steps.lenght must be >= 1 */ private XPath(boolean isAbsolute, Step[] steps) { for (int i = 0; i < steps.length; ++i) steps_.addElement(steps[i]); absolute_ = isAbsolute; string_ = null; }
/** * Pushes the specified object onto the top of the stack. * * @param object * The object to be added on top of the stack. * @return the object argument. * @see #peek * @see #pop */ public E push(E object) { addElement(object); return object; }
/** * Push the current state onto the state stack. */ private void pushState() { stateStack.addElement(curLexState); }
public void pushError(Throwable e) { errorStack.addElement(e); }
/** * Pushes the specified object onto the top of the stack. * * @param object * The object to be added on top of the stack. * @return the object argument. * @see #peek * @see #pop */ public E push(E object) { addElement(object); return object; }
/** * Push the current state onto the state stack. */ private void pushState() { // System.err.println("pushing: "+curLexState); printLinePos(); stateStack.addElement(new Integer(curLexState)); }
/** * Push the current state onto the state stack. */ private void pushState() { stateStack.addElement(new Integer(curLexState)); }
/** * Push the current state onto the state stack. */ private void pushState() { // System.err.println("pushing: "+curLexState); printLinePos(); stateStack.addElement(new Integer(curLexState)); }
private final void copyStack(Stack fromStack, Stack toStack) { while (!toStack.empty()) toStack.pop(); // take advantage of Stack's inheritance from Vector for (int i=0; i<fromStack.size(); i++) toStack.addElement(fromStack.elementAt(i)); }
public synchronized void free(Connection connection) { busyConnections.removeElement(connection); availableConnections.addElement(connection); // Wake up threads that are waiting for a connection notifyAll(); }
public synchronized void free(Connection connection) { busyConnections.removeElement(connection); availableConnections.addElement(connection); // Wake up threads that are waiting for a connection notifyAll(); }
public synchronized void free(Connection connection) { busyConnections.removeElement(connection); availableConnections.addElement(connection); // Wake up threads that are waiting for a connection notifyAll(); }
public synchronized void free(Connection connection) { busyConnections.removeElement(connection); availableConnections.addElement(connection); // Wake up threads that are waiting for a connection notifyAll(); }
public void add(WindowsDirectoryChooserUI.FileTreeNode node, JTree tree) { if (!isAlive()) { throw new IllegalArgumentException("Queue is no longer alive"); } synchronized (lock) { if (running) { nodes.addElement(new QueueItem(node, tree)); lock.notifyAll(); } } }
public void concreteWriteReadStackGetTest() { String tainted = TelephonyManager.getDeviceId(); Stack<String> stack = new Stack<String>(); stack.addElement("neutral"); stack.push(tainted); String taintedElement2 = stack.get(0); ConnectionManager cm = new ConnectionManager(); cm.publish(taintedElement2); }
public void concreteWriteReadStackPeekTest() { String tainted = TelephonyManager.getDeviceId(); Stack<String> stack = new Stack<String>(); stack.addElement("neutral"); stack.push(tainted); String taintedElement = stack.peek(); ConnectionManager cm = new ConnectionManager(); cm.publish(taintedElement); }