Examples of TypeMap


Examples of com.google.gwt.dev.jjs.impl.TypeMap

      /*
       * (1) Build a flattened map of TypeDeclarations => JType. The resulting
       * map contains entries for all reference types. BuildTypeMap also parses
       * all JSNI.
       */
      TypeMap typeMap = new TypeMap(jprogram);
      TypeDeclaration[] allTypeDeclarations = BuildTypeMap.exec(typeMap,
          goldenCuds, jsProgram);

      // BuildTypeMap can uncover syntactic JSNI errors; report & abort
      checkForErrors(logger, goldenCuds, true);
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.TypeMap

      /*
       * (1) Build a flattened map of TypeDeclarations => JType. The resulting
       * map contains entries for all reference types. BuildTypeMap also parses
       * all JSNI.
       */
      TypeMap typeMap = new TypeMap(jprogram);
      TypeDeclaration[] allTypeDeclarations = BuildTypeMap.exec(typeMap,
          goldenCuds, jsProgram);

      // BuildTypeMap can uncover syntactic JSNI errors; report & abort
      checkForErrors(logger, goldenCuds, true);
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.TypeMap

      // Note that all reference types (even nested and local ones) are in the
      // resulting type map. BuildTypeMap also parses all JSNI.
      //
      JProgram jprogram = new JProgram(logger, rebindOracle);
      TypeMap typeMap = new TypeMap(jprogram);
      JsProgram jsProgram = new JsProgram();
      TypeDeclaration[] allTypeDeclarations = BuildTypeMap.exec(typeMap,
          goldenCuds, jsProgram);

      // BuildTypeMap can uncover syntactic JSNI errors; report & abort
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.TypeMap

        /*
         * (1) Build a flattened map of TypeDeclarations => JType. The resulting
         * map contains entries for all reference types. BuildTypeMap also
         * parses all JSNI.
         */
        TypeMap typeMap = new TypeMap(jprogram);
        TypeDeclaration[] allTypeDeclarations = BuildTypeMap.exec(typeMap,
            goldenCuds, jsProgram);

        // BuildTypeMap can uncover syntactic JSNI errors; report & abort
        checkForErrors(logger, true);
View Full Code Here

Examples of de.netallied.xsd2cppsax.TypeMapping.TypeMap

                replaceValue = fillInTypeMappingTemplate(replaceValue, null, null, dataProvider);
                tmpl = tmpl.replace(Constants.TMPL_POST_DATA_ATOMIC_XSD_2_CPP, replaceValue);
            }

            if (tmpl.contains(Constants.TMPL_DATA_ATOMIC_DATA_METHOD_IMPL)) {
                TypeMap typeMap = dataProvider.getConfig().getTypeMapping().get(xsdType);
                String cppImpl = null;
                if (Util.isFacetPatternSupported(simpleType, dataProvider.getConfig())) {
                    cppImpl = typeMap.getDataAtomicDataMethodImplFacetPattern();
                } else {
                    cppImpl = typeMap.getDataAtomicDataMethodImpl();
                }
                if (cppImpl != null && cppImpl.length() > 0) {
                    cppImpl = fillInTypeMappingTemplate(cppImpl, null, null, dataProvider);
                    tmpl = tmpl.replace(Constants.TMPL_DATA_ATOMIC_DATA_METHOD_IMPL, cppImpl);
                } else {
View Full Code Here

Examples of de.netallied.xsd2cppsax.TypeMapping.TypeMap

                fprintfSourceFile.println(");");

            } else {
                fprintfSourceFile.print(value);
                String xsdTypeString = Util.findXSDSimpleTypeString(memberTypes.get(i), getConfig());
                TypeMap typeMap = getConfig().getTypeMapping().get(xsdTypeString);
                if (typeMap != null) {
                    if (typeMap.getToString() != null) {
                        fprintfSourceFile.print(typeMap.getToString());
                    }
                }
            }
            if (!Util.isStringType(memberTypes.get(i), getConfig()) || Util.hasFacetEnum(memberTypes.get(i))) {
                fprintfSourceFile.println(");");
View Full Code Here

Examples of de.netallied.xsd2cppsax.TypeMapping.TypeMap

        } else if (Util.isBoolType(attrType, getConfig())) {
            fprintfSourceFile.print(value + createBoolToString());
        } else {
            fprintfSourceFile.print(value);
            String xsdTypeString = Util.findXSDSimpleTypeString(attrType, getConfig());
            TypeMap typeMap = getConfig().getTypeMapping().get(xsdTypeString);
            if (typeMap != null) {
                if (typeMap.getToString() != null) {
                    fprintfSourceFile.print(typeMap.getToString());
                }
            }
        }
        fprintfSourceFile.println(");");
    }
View Full Code Here

Examples of de.netallied.xsd2cppsax.TypeMapping.TypeMap

            fprintfSourceFile.print("fprintf(" + fileMemberName + ", \"");
            String formatSpecifier = findFormatSpecifier(simpleType);
            fprintfSourceFile.print(formatSpecifier);
            fprintfSourceFile.print("\", " + value);
            String xsdTypeString = Util.findXSDSimpleTypeString(simpleType, getConfig());
            TypeMap typeMap = getConfig().getTypeMapping().get(xsdTypeString);
            if (typeMap != null) {
                if (typeMap.getToString() != null) {
                    fprintfSourceFile.print(typeMap.getToString());
                }
            }
            fprintfSourceFile.println(");");
        }
    }
View Full Code Here

Examples of gov.cca.TypeMap

   * @param properties the XML-ised form of the TypeMap object
   */
  public void setProperties(String properties)
    throws gov.cca.CCAException {
    logger.finest("called");
    TypeMap tMap = services.getProperties();
    TypeUtil.fromXML(properties, tMap);
  }
View Full Code Here

Examples of gov.cca.TypeMap

    logger.finest("called for port: " + providesPortName);

    ProvidesPortInfo pInfo = (ProvidesPortInfo) providesPortMap.get(providesPortName);
    if (pInfo != null) {
      synchronized(pInfo) {
  TypeMap pMap = pInfo.getProperties();
  return pMap.getString("cca.portType", "None");
      }
    } else
      throw new PortNotDefinedException("Port " + providesPortName + " not defined");
  }
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.