Examples of index()


Examples of org.hibernate.search.jpa.FullTextEntityManager.index()

    em.clear();

    //Not really a unit test but a test that shows the method call without failing
    //FIXME port the index test
    em.getTransaction().begin();
    em.index( em.find( Bretzel.class, bretzel.getId() ) );
    em.getTransaction().commit();

    em.getTransaction().begin();
    em.remove( em.find( Bretzel.class, bretzel.getId() ) );
    em.getTransaction().commit();
View Full Code Here

Examples of org.hotswap.agent.javassist.bytecode.LocalVariableAttribute.index()

        for (int i = 0; i < n; ++i) {
            int start = va.startPc(i);
            int len = va.codeLength(i);
            if (start <= pc && pc < start + len)
                gen.recordVariable(va.descriptor(i), va.variableName(i),
                        va.index(i), stable);
        }

        return true;
    }
View Full Code Here

Examples of org.idpf.epubcheck.util.css.CssTokenList.CssTokenIterator.index()

    ctl.add(chr);
    ctl.add(com);
    ctl.add(chr);
    CssTokenIterator iter = ctl.iterator(FILTER_S_CMNT);
    assertEquals(3, countTokens(iter));
    assertEquals(4, iter.index());
  }
   
  private int countTokens(CssTokenIterator iter) {
    int c = 0;
    while(iter.hasNext()) {
View Full Code Here

Examples of org.infinispan.configuration.cache.InterceptorConfiguration.index()

            interceptor = interceptors.get(1);
            assertEquals(InvocationContextInterceptor.class, interceptor.before());
            assertTrue(interceptor.interceptor() instanceof CustomInterceptor2);
            interceptor = interceptors.get(2);
            assertTrue(interceptor.interceptor() instanceof CustomInterceptor3);
            assertEquals(1, interceptor.index());
            interceptor = interceptors.get(3);
            assertTrue(interceptor.interceptor() instanceof CustomInterceptor4);
            assertEquals(InterceptorConfiguration.Position.LAST, interceptor.position());
            assertTrue(c.unsafe().unreliableReturnValues());
View Full Code Here

Examples of org.infinispan.configuration.cache.InterceptorConfigurationBuilder.index()

               break;
            case CLASS:
               interceptorBuilder.interceptor(Util.<CommandInterceptor>getInstance(value, holder.getClassLoader()));
               break;
            case INDEX:
               interceptorBuilder.index(Integer.parseInt(value));
               break;
            case POSITION:
               interceptorBuilder.position(Position.valueOf(value.toUpperCase()));
               break;
            default:
View Full Code Here

Examples of org.jboss.arquillian.graphene.page.InFrame.index()

            boolean isAccessible = field.isAccessible();
            if (!isAccessible) {
                field.setAccessible(true);
            }
            InFrame inFrame = field.getAnnotation(InFrame.class);
            int index = inFrame.index();
            String nameOrId = inFrame.nameOrId();
            checkInFrameParameters(field, index, nameOrId);

            try {
                registerInFrameInterceptor(objectToEnrich, field, index, nameOrId);
View Full Code Here

Examples of org.jboss.dna.graph.search.SearchEngineIndexer.index()

    }

    @Test
    public void shouldIndexAllContentInWorkspace() throws Exception {
        SearchEngineIndexer indexer = new SearchEngineIndexer(context, engine, connectionFactory);
        indexer.index(workspaceName1);
        indexer.index(workspaceName2);
        indexer.close();
    }

    @Test
View Full Code Here

Examples of org.jboss.forge.furnace.proxy.javassist.bytecode.LocalVariableAttribute.index()

        for (int i = 0; i < n; ++i) {
            int start = va.startPc(i);
            int len = va.codeLength(i);
            if (start <= pc && pc < start + len)
                gen.recordVariable(va.descriptor(i), va.variableName(i),
                                   va.index(i), stable);
        }

        return true;
    }
View Full Code Here

Examples of org.jboss.jandex.Indexer.index()

    for ( Class<?> clazz : classes ) {
      InputStream stream = classLoaderService.locateResourceStream(
          clazz.getName().replace( '.', '/' ) + ".class"
      );
      try {
        indexer.index( stream );
      }
      catch ( IOException e ) {
        StringBuilder builder = new StringBuilder();
        builder.append( "[" );
        int count = 0;
View Full Code Here

Examples of org.jquantlib.time.TimeGrid.index()

  // protected methods
  //

    protected boolean isOnTime(final /* @Time */ double t) {
        final TimeGrid grid = method().timeGrid();
        return Closeness.isCloseEnough(grid.at(grid.index(t)), time());
    }

    /**
     * This method performs the actual pre-adjustment
     * <p>
 
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.