Examples of JSArrayLiteral


Examples of org.hisrc.jscm.codemodel.expression.JSArrayLiteral

    return options;
  }

  private void createElementTypeInfosOptions(MElementTypeInfos<T, C> info,
      JSObjectLiteral options) {
    final JSArrayLiteral elementTypeInfos = this.codeModel.array();
    options.append("elementTypeInfos", elementTypeInfos);
    for (MElementTypeInfo<T, C> elementTypeInfo : info
        .getElementTypeInfos()) {
      final JSObjectLiteral elementTypeInfoOptions = this.codeModel
          .object();
      createElementTypeInfoOptions(elementTypeInfo,
          elementTypeInfoOptions);
      elementTypeInfos.append(elementTypeInfoOptions);
    }
  }
View Full Code Here

Examples of org.hisrc.jscm.codemodel.expression.JSArrayLiteral

            this, this.codeModel));
  }

  public JSArrayLiteral compileClassInfos(
      Collection<MClassInfo<T, C>> classInfos) {
    final JSArrayLiteral classInfoMappings = this.codeModel.array();
    for (MClassInfo<T, C> classInfo : classInfos) {
      classInfoMappings.append(compileClassInfo(classInfo));
    }
    return classInfoMappings;
  }
View Full Code Here

Examples of org.hisrc.jscm.codemodel.expression.JSArrayLiteral

    return classInfoMapping;
  }

  public JSArrayLiteral compilePropertyInfos(MClassInfo<T, C> classInfo) {
    final JsonixModule module = getModule(classInfo);
    final JSArrayLiteral propertyInfoMappings = this.codeModel.array();
    for (MPropertyInfo<T, C> propertyInfo : classInfo.getProperties()) {
      propertyInfoMappings.append(propertyInfo
          .acceptPropertyInfoVisitor(new PropertyInfoVisitor<T, C>(
              JsonixCompiler.this, JsonixCompiler.this.codeModel,
              module)));
    }
    return propertyInfoMappings;
View Full Code Here

Examples of org.hisrc.jscm.codemodel.expression.JSArrayLiteral

    return propertyInfoMappings;
  }

  public JSArrayLiteral compileElementInfos(
      Collection<MElementInfo<T, C>> elementInfos) {
    final JSArrayLiteral elementInfoMappings = this.codeModel.array();
    for (MElementInfo<T, C> elementInfo : elementInfos) {
      elementInfoMappings.append(compileElementInfo(elementInfo));
    }
    return elementInfoMappings;
  }
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.