Examples of cast()


Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.cast()

        cb.getField(field); // instance
        cb.push(index + 1); // first arg;

        rc.generateExpression(acb, cb);
        cb.cast(ClassName.DataValueDescriptor); // second arg
        cb.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Row, "setColumn", "void", 2);
        continue;
      }

      userExprFun.getField(field); // instance
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.cast()

        cb.getField(field); // instance
        cb.push(index + 1); // first arg;

        rc.generateExpression(acb, cb);
        cb.cast(ClassName.DataValueDescriptor); // second arg
        cb.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Row, "setColumn", "void", 2);
        continue;
      }

      userExprFun.getField(field); // instance
View Full Code Here

Examples of org.c3s.data.cast.CastType.cast()

public class CastTest {

  public static void main(String[] args) {
    CastType cast = new StringCast();
    Object result = cast.cast(Time.class, String.class, "sasakslklad  DLKAJSKJASD 8:0:69");
    System.out.println(result.toString());
  }

}
View Full Code Here

Examples of org.c3s.rpgplayer.mapper.StringCast.cast()

public class CastTest {

  public static void main(String[] args) {
    CastType cast = new StringCast();
    Object result = cast.cast(Time.class, String.class, "sasakslklad  DLKAJSKJASD 8:0:69");
    System.out.println(result.toString());
  }

}
View Full Code Here

Examples of org.erlide.runtime.api.IOtpRpc.cast()

        } catch (final RpcException e) {
            r = null;
        }
        assertThat("rpc", r, is(not(nullValue())));
        try {
            site.cast("erlang", "halt", "i", 0);
        } catch (final RpcException e1) {
        }
        expect(nodeProxy, process, 0, State.TERMINATED);
    }
View Full Code Here

Examples of org.erlide.runtime.api.IOtpRpc.cast()

    @Test
    public void shutdownIsDetected() {
        final IOtpRpc site = nodeProxy.getOtpRpc();
        try {
            site.cast("erlang", "halt", "i", 0);
        } catch (final RpcException e1) {
        }
        expect(nodeProxy, process, 0, State.TERMINATED);
    }
View Full Code Here

Examples of org.erlide.runtime.api.IOtpRpc.cast()

    @Test
    public void exitCodeIsDetected() {
        final IOtpRpc site = nodeProxy.getOtpRpc();
        try {
            site.cast("erlang", "halt", "i", 3);
        } catch (final RpcException e1) {
        }
        expect(nodeProxy, process, 3, State.TERMINATED);
    }
View Full Code Here

Examples of org.jboss.xb.binding.sunday.unmarshalling.ValueAdapter.cast()

   @Override
   public void attribute(QName elemName, QName attrName, AttributeBinding binding, Object owner, Object value)
   {
      ValueAdapter valueAdapter = binding.getValueAdapter();
      if (valueAdapter != null)
         value = valueAdapter.cast(value, null);
     
      BeanAdapter parent = (BeanAdapter) owner;
      doHandle(parent, value, attrName);
   }
View Full Code Here

Examples of org.nutz.castor.castor.String2Array.cast()

        assertTrue(c.canCast(String.class, String[].class));
        assertTrue(c.canCast(Dummy.class, Dummy[].class));

        Castor<String, Object> string2Array = new String2Array();

        assertArrayEquals((String[])string2Array.cast("[\"a\",\"b\",\"c\",123,456]", String[].class),
                          c.cast("[\"a\",\"b\",\"c\",123,456]", String.class, String[].class));
    }

    @Test
    public void test_Double_to_int() {
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.cast()

     * check the type and cast as necessary
     */
    switch (returnType.getSort())
    {
      case Type.BOOLEAN:
        methodAdapter.cast(OBJECT_TYPE, Type.getType(Boolean.class));
        methodAdapter.unbox(Type.BOOLEAN_TYPE);
        break;
      case Type.BYTE:
        methodAdapter.cast(OBJECT_TYPE, Type.getType(Byte.class));
        methodAdapter.unbox(Type.BYTE_TYPE);
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.