Package java.util

Examples of java.util.Stack.pop()


        }
        Object obj = null;
        do {
            boolean newlyMade = false;
            if (!stack.empty()) {
                obj = stack.pop();
                _totIdle--;
            } else {
                if(null == _factory) {
                    throw new NoSuchElementException("pools without a factory cannot create new objects as needed.");
                } else {
View Full Code Here


      stack.push(obj);
    }
   
    public Object pop () {
      Stack stack = (Stack)get();
      return stack.pop();
    }
   
    protected Object initialValue() {
      return new Stack();
    }
View Full Code Here

                                        SEND_TIMEOUT_MESSAGE);

                                Stack faultStack = msgContext.getFaultStack();

                                for (int j = 0; j < faultStack.size(); j++) {
                                    Object o = faultStack.pop();
                                    if (o instanceof FaultHandler) {
                                        ((FaultHandler) o).handleFault(msgContext);
                                    }
                                }
View Full Code Here

        } catch (SynapseException e) {

            Stack faultStack = synCtx.getFaultStack();
            if (faultStack != null && !faultStack.isEmpty()) {
                ((FaultHandler) faultStack.pop()).handleFault(synCtx);
            }
        }
    }

    /**
 
View Full Code Here

        } catch (SynapseException se) {

            Stack faultStack = synCtx.getFaultStack();
            if (faultStack != null && !faultStack.isEmpty()) {
                ((FaultHandler) faultStack.pop()).handleFault(synCtx, se);
            }
        }
    }

    /**
 
View Full Code Here

        Stack backtrack = new Stack();
       
        // loop around a backtrack stack, to handle complex * matching
        do {
            if (backtrack.size() > 0) {
                int[] array = (int[]) backtrack.pop();
                wcsIdx = array[0];
                textIdx = array[1];
                anyChars = true;
            }
           
View Full Code Here

                        Object o = faultStack.peek();

                        if (o instanceof MediatorFaultHandler &&
                                errorHandlerMediator.equals(
                                        ((MediatorFaultHandler) o).getFaultMediator())) {
                            faultStack.pop();
                        }
                    }
                }

                if (synLog.isTraceOrDebugEnabled()) {
View Full Code Here

      return false;
  }

  Stack stack;
  if ((stack = (Stack)_namespaces.get(prefix)) != null) {
      stack.pop();
      return true;
  }
  return false;
    }
View Full Code Here

   * SAX2: End the scope of a prefix-URI Namespace mapping.
   */
  public void endPrefixMapping(String prefix) {
      // Get the stack associated with this namespace prefix
      final Stack stack = (Stack)_nsPrefixes.get(prefix);
      if ((stack != null) && (!stack.empty())) stack.pop();
  }

  /**
   * SAX2: Report an XML comment anywhere in the document.
   */
 
View Full Code Here

    public void removeVariable(QName name) {
  Object existing = _variableScope.get(name);
  if (existing instanceof Stack) {
      Stack stack = (Stack)existing;
      if (!stack.isEmpty()) stack.pop();
      if (!stack.isEmpty()) return;
  }
  _variableScope.remove(name);
    }
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.