Examples of peek()


Examples of org.jitterbit.util.string.KongaStringTokenizer.peek()

      switch(c=token.charAt(0)){
      case ' ':
      case '\r':
      case '\n':
      case '\t':
        while(tk.hasMoreTokens() && (c=tk.peek().charAt(0))==' '||c=='\r'||c=='\n'||c=='\t'){
          pos1+=tk.nextToken().length();
        }
        tokens.add(new SqlToken(pos0, pos1, t_ws));
        break;
      case '[':
View Full Code Here

Examples of org.jmathml.TokenStream.TokenIterator.peek()

    TokenIterator tokIt = str.iterator();
    while(tokIt.hasNext()){
      tokIt.next();
    }
    assertFalse(tokIt.hasNext());
    assertNull(tokIt.peek());
   
  }
 
  @Test
  public final void testIteratorPeek() {
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneTokenizer.peek()

    }

    @Test
    public void testEmpty() throws ShellSyntaxException {
        BjorneTokenizer tokenizer = new BjorneTokenizer("");
        BjorneToken token = tokenizer.peek();
        Assert.assertEquals(TOK_END_OF_STREAM, token.getTokenType());
        token = tokenizer.peek(RULE_1_CONTEXT);
        Assert.assertEquals(TOK_END_OF_STREAM, token.getTokenType());
        token = tokenizer.next();
        Assert.assertEquals(TOK_END_OF_STREAM, token.getTokenType());
View Full Code Here

Examples of org.milyn.edisax.BufferedSegmentReader.peek()

          attrs.addAttribute(XMLConstants.XMLNS_ATTRIBUTE_NS_URI, ControlBlockHandlerFactory.ENVELOPE_PREFIX, XMLConstants.XMLNS_ATTRIBUTE + ":" + ControlBlockHandlerFactory.ENVELOPE_PREFIX, "CDATA", handlerFactory.getNamespace());
            String envElementQName = ControlBlockHandlerFactory.ENVELOPE_PREFIX + ":unEdifact";
            contentHandler.startElement(handlerFactory.getNamespace(), "unEdifact", envElementQName, attrs);
 
          while(true) {
            segCode = segmentReader.peek(3, true);
            if(segCode.length() == 3) {
                    interchangeContext = createInterchangeContext(segmentReader, validate, handlerFactory, namespaceDeclarationStack);
                    namespaceDeclarationStack = interchangeContext.getNamespaceDeclarationStack();

                    if(hierarchyChangeListener != null) {
View Full Code Here

Examples of org.mortbay.io.Buffer.peek()

        Buffer hostPort = _connection.getRequestFields().get(HttpHeaders.HOST_BUFFER);
        if (hostPort!=null)
        {
            for (int i=hostPort.length();i-->0;)  
            {
                if (hostPort.peek(hostPort.getIndex()+i)==':')
                {
                    _serverName=BufferUtil.to8859_1_String(hostPort.peek(hostPort.getIndex(), i));
                    _port=BufferUtil.toInt(hostPort.peek(hostPort.getIndex()+i+1, hostPort.length()-i-1));
                    return _serverName;
                }
View Full Code Here

Examples of org.mortbay.io.nio.IndirectNIOBuffer.peek()

                        if (x<128 & buffer.space()>0)
                        {
                            three.clear();
                            int l=super.fill(three);
                            if (l>0)
                                buffer.put(three.peek(0));
                            if (l>1)
                                buffer.put(three.peek(1));
                            if (l>2)
                                buffer.put(three.peek(2));
                            return l;
View Full Code Here

Examples of org.mvel2.util.ExecutionStack.peek()

        else {
          break;
        }
      }
    }
    return stk.peek();
  }

  @Override
  public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) {
    ExecutionStack stack = (ExecutionStack) ctx;
View Full Code Here

Examples of org.noname.designer.core.interfaces.FrameContext.peek()

   */
  @Override
  public int evaluate(EvaluationContext context) {
    Expression expression = invocation.getExpression();
    FrameContext frame = context.peek();
    VariableContext ctx = frame.peek();
    Stack<Object> stack = ctx.getStack();
    if (expression != null && !(expression instanceof ThisExpression)) {
      IEvaluator evaluator = (IEvaluator) Platform.getAdapterManager()
          .getAdapter(expression, IEvaluator.class);
      int result = evaluator.evaluate(context);
View Full Code Here

Examples of org.opencustomer.framework.webapp.panel.PanelStack.peek()

        try {
            new ListConfigurationDAO().delete(listConfiguration);
           
            PanelStack stack = Panel.getPanelStack(request);
            if(stack.getSize() > 2) {
                Panel lastPanel = stack.peek(3);
                lastPanel.removeAttribute("listConfigurations");
                lastPanel.removeAttribute("choosenList");
                lastPanel.removeAttribute(ListAction.TABLE_KEY);
            }
           
View Full Code Here

Examples of org.ozoneDB.data.SimpleArrayList.peek()

        if (isRunning()) {
            SimpleArrayList callStack   =   transaction.getCallStack();

           try {
                if (args!=null) {
                    ObjectContainer caller      =   (ObjectContainer) callStack.peek();

                    if (caller!=null) {

                        /*
                            There is a design decision which heavily affects performance:
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.