Examples of builder()


Examples of com.facebook.swift.codec.ThriftStruct.builder()

    }

    private Class<?> extractBuilderClass()
    {
        ThriftStruct annotation = structClass.getAnnotation(ThriftStruct.class);
        if (annotation != null && !annotation.builder().equals(void.class)) {
            return annotation.builder();
        }
        else {
            return null;
        }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftUnion.builder()

    @Override
    protected Class<?> extractBuilderClass()
    {
        ThriftUnion annotation = getStructClass().getAnnotation(ThriftUnion.class);
        if (annotation != null && !annotation.builder().equals(void.class)) {
            return annotation.builder();
        }
        else {
            return null;
        }
View Full Code Here

Examples of com.linkedin.r2.message.rest.RestRequest.builder()

    Assert.assertEquals(encoded.getMethod(), "POST");
    Assert.assertEquals(encoded.getURI().toString(), "http://localhost:7279");
    Assert.assertTrue(encoded.getEntity().length() == query.length());
    Assert.assertEquals(encoded.getHeader("Content-Type"), "application/x-www-form-urlencoded");

    RestRequestBuilder rb = encoded.builder()
                             .setURI(new URI(encoded.getURI().toString() + "?"));
    RestRequest modified = rb.build();

    RestRequest decoded = QueryTunnelUtil.decode(modified);
    Assert.assertEquals(decoded.getURI().toString(), "http://localhost:7279?" + query);
View Full Code Here

Examples of com.opengamma.integration.viewer.status.impl.ViewStatusKeyBean.Meta.builder()

  }

  private ViewStatusKey keyFromRowValues(List<String> keyValues, List<ViewColumnType> columnTypes) {

    Meta keyMeta = ViewStatusKeyBean.meta();
    BeanBuilder<? extends ViewStatusKeyBean> beanBuilder = keyMeta.builder();
    Iterator<String> keyItr = keyValues.iterator();
    Iterator<ViewColumnType> colTypeItr = columnTypes.iterator();
   
    while (keyItr.hasNext() && colTypeItr.hasNext()) {
      beanBuilder.set(colTypeItr.next().getMetaProperty(), keyItr.next());
View Full Code Here

Examples of jodd.proxetta.impl.InvokeProxetta.builder()

  public void testReplacement() throws IllegalAccessException, InstantiationException, NoSuchMethodException {

    InvokeProxetta proxetta = initProxetta();

    String className = One.class.getCanonicalName();
    byte klazz[] = proxetta.builder(One.class).create();
    //FileUtil.writeBytes("d:\\OneClone.class", klazz);

    FastByteArrayOutputStream fbaos = new FastByteArrayOutputStream();
//    PrintStream out = System.out;
    System.setOut(new PrintStream(fbaos));
View Full Code Here

Examples of jodd.proxetta.impl.ProxyProxetta.builder()

      ProxyProxetta proxetta = ProxyProxetta.withAspects(aspect);

      proxetta.setClassNameSuffix("$ScopedProxy");
      proxetta.setVariableClassName(true);

      ProxyProxettaBuilder builder = proxetta.builder(beanType);

      proxyClass = builder.define();

      proxyClasses.put(beanType, proxyClass);
    }
View Full Code Here

Examples of jodd.proxetta.impl.WrapperProxetta.builder()

                }
              }))
        //.setDebugFolder("/Users/igor/")
        ;

    WrapperProxettaBuilder proxettaBuilder = proxetta.builder();
    proxettaBuilder.setTarget(Hero.class);
    proxetta.setVariableClassName(true);
    Object hero = proxettaBuilder.newInstance();

    assertEquals("BatmanHero37W88.3CatWoman99speeeeedXRAYnull", ReflectUtil.invoke(hero, "name"));
View Full Code Here

Examples of net.hydromatic.optiq.impl.java.JavaTypeFactory.builder()

  /** Quickly prepares a simple SQL statement, circumventing the usual
   * preparation process. */
  private <T> PrepareResult<T> simplePrepare(Context context, String sql) {
    final JavaTypeFactory typeFactory = context.getTypeFactory();
    final RelDataType x =
        typeFactory.builder().add("EXPR$0", SqlTypeName.INTEGER).build();
    @SuppressWarnings("unchecked")
    final List<T> list = (List) ImmutableList.of(1);
    final List<String> origin = null;
    final List<List<String>> origins =
        Collections.nCopies(x.getFieldCount(), origin);
View Full Code Here

Examples of net.hydromatic.optiq.impl.java.JavaTypeFactory.builder()

          aggs.add(new AggImpState(aggIdx, call, true));
        }

        // The output from this stage is the input plus the aggregate functions.
        final RelDataTypeFactory.FieldInfoBuilder typeBuilder =
            typeFactory.builder();
        typeBuilder.addAll(inputPhysType.getRowType().getFieldList());
        for (AggImpState agg : aggs) {
          typeBuilder.add(agg.call.name, agg.call.type);
        }
        RelDataType outputRowType = typeBuilder.build();
View Full Code Here

Examples of net.hydromatic.optiq.jdbc.JavaTypeFactoryImpl.builder()

  }

  @Test public void testLoadSorted() {
    final JavaTypeFactoryImpl typeFactory = new JavaTypeFactoryImpl();
    final RelDataType rowType =
        typeFactory.builder()
            .add("empid", typeFactory.createType(int.class))
            .add("deptno", typeFactory.createType(int.class))
            .add("name", typeFactory.createType(String.class))
            .build();
    final Enumerable<Object[]> enumerable =
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.