Examples of cast()


Examples of alt.jiapi.reflect.InstructionFactory.cast()

        // Get the initialized value from Runtime.
        il.add(factory.pushConstant(fieldName));
        il.add(factory.invoke(getFieldValue));
       
        // Cast the field.
        il.add(factory.cast(field.getTypeName()));

        // Set the field.
        il.add(factory.setField(field));

        forward(il);
View Full Code Here

Examples of com.caucho.bytecode.CodeWriterAttribute.cast()

    code.invoke("com/caucho/config/inject/InjectManager$ReferenceFactory",
                "create",
                "()Ljava/lang/Object;",
                3, 1);

    code.cast(method.getDeclaringClass().getName().replace('.', '/'));

    int stack = 1;
    int index = 1;
    for (Class<?> type : parameterTypes) {
      if (boolean.class.equals(type)
View Full Code Here

Examples of com.espertech.esper.util.SimpleTypeCaster.cast()

        {
            // handle primitive value
            if (!annotationAttribute.getType().isAnnotation())
            {
                SimpleTypeCaster caster = SimpleTypeCasterFactory.getCaster(value.getClass(), annotationAttribute.getType());
                Object finalValue = caster.cast(value);
                if (finalValue == null)
                {
                    throw new AnnotationException("Annotation '" + annotationClass.getSimpleName() + "' requires a " +
                            annotationAttribute.getType().getSimpleName() + "-typed value for attribute '" + annotationAttribute.getName() + "' but received " +
                            "a " + value.getClass().getSimpleName() + "-typed value");
View Full Code Here

Examples of com.foundationdb.server.types.service.TCastResolver.cast()

                        return new BooleanConstantExpression(null);
                    }
                    if (casts.isIndexFriendly(tclass(leftTInst), tclass(rightTInst))) {
                        TInstance columnType = type(left);
                        TInstance constType = type(right);
                        TCast constToCol = casts.cast(constType, columnType);
                        if (constToCol != null) {
                            TCast colToConst = casts.cast(columnType, constType);
                            if (colToConst != null) {
                                TPreptimeValue constValue = right.getPreptimeValue();
                                ValueSource asColType = castValue(constToCol, constValue, columnType);
View Full Code Here

Examples of com.google.collide.dto.client.DtoClientImpls.DirInfoImpl.cast()

        FileTreeUtils.allocateName(parentData.<DirInfoImpl>cast(), NEW_FILE_NAME + "Folder");

    DirInfoImpl newDir = DirInfoImpl.make()
        .setFiles(JsoArray.<FileInfo>create()).setSubDirectories(JsoArray.<DirInfo>create())
        .setIsComplete(false);
    newDir.<TreeNodeInfoImpl>cast().setNodeType(TreeNodeInfo.DIR_TYPE);
    newDir.setName(newDirName);

    handleNewNode(parentTreeNode, parentData, newDir.<FileTreeNode>cast());
  }
View Full Code Here

Examples of com.google.collide.dto.client.DtoClientImpls.FileInfoImpl.cast()

    FileTreeNode parentData = getDirData(parentTreeNode);
    String newFileName = FileTreeUtils.allocateName(parentData.<DirInfoImpl>cast(), NEW_FILE_NAME);

    FileInfoImpl newFile = FileInfoImpl.make().setSize("0");
    newFile.<TreeNodeInfoImpl>cast().setNodeType(TreeNodeInfo.FILE_TYPE);
    newFile.setName(newFileName);

    handleNewNode(parentTreeNode, parentData, newFile.<FileTreeNode>cast());
  }
View Full Code Here

Examples of com.google.collide.json.client.Jso.cast()

      @Override
      public void onMessage(String message, ReplySender replySender) {
        Jso jso = Jso.deserialize(message);
        int type = jso.getIntField("_type");
        if (type==RoutingTypes.LOGMESSAGE){
          addLog(jso.<LogMessageImpl>cast());
        } else if (type == RoutingTypes.COMPILERESPONSE){
          updateStatus(jso.<CompileResponseImpl>cast());
        } else {
          Log.info(getClass(), "Unhandled response type "+type+"; from:\n"+message);
        }
View Full Code Here

Examples of com.google.gwt.core.client.JavaScriptObject.cast()

      return null;
    }

    JavaScriptObject wrapper = getWrapper(type);

    JsArray<JavaScriptObject> wrapperArray = wrapper.cast();
    for (int i = 0; i < type.length; i++) {
      wrapperArray.set(i, wrap(type[i]));
    }
    return wrapper;
  }
View Full Code Here

Examples of com.google.gwt.core.client.JavaScriptObject.cast()

    if (!GWT.isScript()) {
      if (type == null) {
        return null;
      }
      JavaScriptObject wrapper = getWrapper(type);
      JsArrayNumber wrapperArray = wrapper.cast();
      for (int i = 0; i < type.length; i++) {
        wrapperArray.set(i, type[i]);
      }
      return wrapper;
    } else {
View Full Code Here

Examples of com.google.gwt.core.client.JavaScriptObject.cast()

    if (!GWT.isScript()) {
      if (type == null) {
        return null;
      }
      JavaScriptObject wrapper = getWrapper(type);
      JsArrayNumber wrapperArray = wrapper.cast();
      for (int i = 0; i < type.length; i++) {
        wrapperArray.set(i, type[i]);
      }
      return wrapper;
    } else {
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.