Examples of TypeMap


Examples of cc.catalysts.cdoclet.map.TypeMap

    String namespace = null;
    String generator = null;
    Class<? extends Annotation> enumAnnotation = null;

    ClassTypeMap typeMap = new ClassTypeMap();
    TypeMap annotationMap = new TypeMap();
    TypeMap annotationTypeMap = new TypeMap();

    for (String[] opt : options) {
      if (opt[0].equals(PARAM_DESTINATION)) {
        destination = opt[1];
      } else if (opt[0].equals(PARAM_NAMESPACE)) {
        namespace = opt[1];
      } else if (opt[0].equals(PARAM_GENERATOR)) {
        generator = opt[1];
      } else if (opt[0].equals(PARAM_ENUM)) {
        enumAnnotation = (Class<? extends Annotation>) Class.forName(opt[1]);
      } else if (opt[0].equals(PARAM_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) typeMap.addTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_GENERIC_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) typeMap.addGenericTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_ANNOTATION_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) annotationMap.addTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_ANNOTATION_TYPE_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) annotationTypeMap.addTypeMapping(strings[0], strings[1]);
      }
    }

    if ("actionscript".equals(generator)) {
      return new AsGenerator(destination, namespace, enumAnnotation, typeMap, annotationTypeMap, annotationMap);
View Full Code Here

Examples of cc.catalysts.cdoclet.map.TypeMap

    String namespace = null;
    String generator = null;
    Class<? extends Annotation> enumAnnotation = null;

    ClassTypeMap typeMap = new ClassTypeMap();
    TypeMap annotationMap = new TypeMap();
    TypeMap annotationTypeMap = new TypeMap();

    for (String[] opt : options) {
      if (opt[0].equals(PARAM_DESTINATION)) {
        destination = opt[1];
      } else if (opt[0].equals(PARAM_NAMESPACE)) {
        namespace = opt[1];
      } else if (opt[0].equals(PARAM_GENERATOR)) {
        generator = opt[1];
      } else if (opt[0].equals(PARAM_ENUM)) {
        enumAnnotation = (Class<? extends Annotation>) Class.forName(opt[1]);
      } else if (opt[0].equals(PARAM_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) typeMap.addTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_GENERIC_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) typeMap.addGenericTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_ANNOTATION_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) annotationMap.addTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_ANNOTATION_TYPE_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) annotationTypeMap.addTypeMapping(strings[0], strings[1]);
      }
    }

    if (Languages.ACTIONSCRIPT.equals(generator)) {
      return new AsGenerator(destination, namespace, enumAnnotation, typeMap, annotationTypeMap, annotationMap);
View Full Code Here

Examples of cc.catalysts.cdoclet.map.TypeMap

    String namespace = null;
    String generator = null;
    Class<? extends Annotation> enumAnnotation = null;

    ClassTypeMap typeMap = new ClassTypeMap();
    TypeMap annotationMap = new TypeMap();
    TypeMap annotationTypeMap = new TypeMap();

    for (String[] opt : options) {
      if (opt[0].equals(PARAM_DESTINATION)) {
        destination = opt[1];
      } else if (opt[0].equals(PARAM_NAMESPACE)) {
        namespace = opt[1];
      } else if (opt[0].equals(PARAM_GENERATOR)) {
        generator = opt[1];
      } else if (opt[0].equals(PARAM_ENUM)) {
        enumAnnotation = (Class<? extends Annotation>) Class.forName(opt[1]);
      } else if (opt[0].equals(PARAM_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) typeMap.addTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_GENERIC_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) typeMap.addGenericTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_ANNOTATION_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) annotationMap.addTypeMapping(strings[0], strings[1]);
      } else if (opt[0].equals(PARAM_ANNOTATION_TYPE_MAP)) {
        String[] strings = opt[1].split(":");
        if (strings.length == 2) annotationTypeMap.addTypeMapping(strings[0], strings[1]);
      }
    }

    if (Languages.ACTIONSCRIPT.equals(generator)) {
      return new AsGenerator(destination, namespace, enumAnnotation, typeMap, annotationTypeMap, annotationMap);
View Full Code Here

Examples of com.google.enterprise.connector.instantiator.TypeMap

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    ConnectorTestUtils.deleteAllFiles(baseDirectory);
    assertTrue(ConnectorTestUtils.mkdirs(baseDirectory));
    typeMap = new TypeMap(TEST_DIR_NAME);
    typeMap.init();
    FileStore fileStore = new FileStore();
    fileStore.setTypeMap(typeMap);
    super.store = fileStore;
  }
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

      /*
       * (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 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

            .toArray(new String[allRootTypes.size()]), rpo, TypeLinker.NULL_TYPE_LINKER).compiledUnits;

    CorrelationFactory correlator = DummyCorrelationFactory.INSTANCE;
    JsProgram jsProgram = new JsProgram(correlator);
    JProgram jprogram = new JProgram(correlator);
    TypeMap typeMap = new TypeMap(jprogram);
    TypeDeclaration[] allTypeDeclarations = BuildTypeMap.exec(typeMap, goldenCuds, jsProgram);
    // BuildTypeMap can uncover syntactic JSNI errors; report & abort
    checkForErrors(logger, goldenCuds);

    // Compute all super type/sub type info
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.