Examples of peek()


Examples of org.codehaus.janino.Scanner.peek()

                {
                    mit.optionalClassNamePattern += '.' + s;
                }
                parser.eatToken();
            } else
            if (scanner.peek().isEOF()) {
                mit.methodNamePattern = s;
                return mit;
            }
        }
    }
View Full Code Here

Examples of org.drools.core.common.InternalAgendaGroup.peek()

                                                                                          this.workingMemory,
                                                                                          MatchCancelledCause.FILTER );
                            tryagain = true;
                        }
                    }
                    if ( (AgendaItem) group.peek() == null || !((AgendaItem) group.peek()).getTerminalNode().isFireDirect() ) {
                        // make sure the "fireDirect" meta rules have all impacted first, before unstaging.
                        unstageActivations();
                    }
                }
            } while ( tryagain );
View Full Code Here

Examples of org.eclipse.jetty.io.Buffer.peek()

         
          if (read == -1)
            throw new EofException();
         
          int length =
            (fb.peek(1) & 0xff) << 16
            | (fb.peek(2) & 0xff) << 8
            | (fb.peek(3) & 0xff);
         
          Buffer b = new ByteArrayBuffer(length);
View Full Code Here

Examples of org.eclipse.jetty.io.ByteArrayBuffer.peek()

         
          if (read == -1)
            throw new EofException();
         
          int length =
            (fb.peek(1) & 0xff) << 16
            | (fb.peek(2) & 0xff) << 8
            | (fb.peek(3) & 0xff);
         
          Buffer b = new ByteArrayBuffer(length);
View Full Code Here

Examples of org.encog.parse.PeekableInputStream.peek()

  public void testPeek() throws Throwable
  {
    ByteArrayInputStream bis = new ByteArrayInputStream("test".getBytes());
    PeekableInputStream peek = new PeekableInputStream(bis);
   
    TestCase.assertTrue(peek.peek(0)=='t');
    TestCase.assertTrue(peek.peek(1)=='e');
    TestCase.assertTrue(peek.peek(2)=='s');
    TestCase.assertTrue(peek.peek(3)=='t');
    TestCase.assertTrue(peek.read()=='t');
    TestCase.assertTrue(peek.read()=='e');
View Full Code Here

Examples of org.encog.util.SimpleParser.peek()

  private List<String> parseSpaceSep(final String line) {
    final List<String> result = new ArrayList<String>();
    SimpleParser parse  = new SimpleParser(line);
   
    while(!parse.eol()) {
      if( parse.peek()=='\"') {
        result.add( parse.readQuotedString() );
      } else {
        result.add( parse.readToWhiteSpace() );
      }
      parse.eatWhiteSpace();
View Full Code Here

Examples of org.exolab.castor.util.Stack.peek()

            String currentLoc = null;
            //-- Wrapper/Location cleanup
            if (wrappers != null) {
                try {
                    while (!wrappers.empty()) {
                        WrapperInfo wInfo = (WrapperInfo)wrappers.peek();
                        if (path != null) {
                            if (wInfo.location.equals(path)) {
                                path = null;
                                break;
                            }
View Full Code Here

Examples of org.geotools.caching.featurecache.FeatureCache.peek()

      fc = cache.getFeatures(f3);
      assertEquals(2, fc.size());

      //at this point the cache should contain feature from area 2 & 3 and features from area 1
      //should have been evicted.
      assertEquals(0, cache.peek(e4).size());
      assertEquals(0, cache.peek(e1).size());
      assertEquals(2, cache.peek(e2).size());
      assertEquals(2, cache.peek(e3).size());
     
      fc = cache.getFeatures(f4);
View Full Code Here

Examples of org.geotools.graph.util.IndexedStack.peek()

    stack.push(from);
   
    int iterations = 0;
O: while(!stack.isEmpty() && (iterations++ < m_maxitr)) {
      //peek the stack
      Node top = (Node)stack.peek();
     
      switch(visitor.visit(top)) {
        case END_PATH_AND_CONTINUE:
          paths.add(new Path(stack));
          stack.pop();
View Full Code Here

Examples of org.hotswap.agent.javassist.bytecode.analysis.Frame.peek()

    private String getTopType(int pos) throws BadBytecode {
        Frame frame = getFrame(pos);
        if (frame == null)
            return null;

        CtClass clazz = frame.peek().getCtClass();
        return clazz != null ? Descriptor.toJvmName(clazz) : null;
    }

    private int replace(ConstPool cp, CodeIterator iterator, int pos,
                        int opcode, String signature) throws BadBytecode {
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.