Examples of JArrayType


Examples of com.google.gwt.core.ext.typeinfo.JArrayType

    JClassType customSerializer = SerializableTypeOracleBuilder.findCustomFieldSerializer(
        typeOracle, type);
    if (customSerializer != null) {
      generateSerializationSignature(typeOracle, customSerializer, crc);
    } else if (type.isArray() != null) {
      JArrayType isArray = type.isArray();
      generateSerializationSignature(typeOracle, isArray.getComponentType(),
          crc);
    } else if (type.isClassOrInterface() != null) {
      JClassType isClassOrInterface = type.isClassOrInterface();
      JField[] fields = getSerializableFields(typeOracle, isClassOrInterface);
      for (JField field : fields) {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

    String resultSourceName = objectType.getParameterizedQualifiedSourceName();

    srcWriter.println(resultSourceName + " "+resultObjectVar + " = " + JClassUtils.getEmptyValueForType(objectType) +";");
    srcWriter.println("if ("+jsonValueVar+" != null && "+jsonValueVar+".isNull() == null){");

    JArrayType objectArrayType = objectType.isArray();
    if (objectArrayType != null)
    {
      generateDecodeStringForArrayType(srcWriter, objectArrayType, jsonValueVar, resultObjectVar, resultSourceName);
    }
    else if(objectType.getQualifiedSourceName().equals(Void.class.getCanonicalName()))
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

    if (!isPrimitive)
    {
      srcWriter.println("if ("+objectVar+" != null){");
    }

    JArrayType objectArrayType = objectType.isArray();
    if (objectArrayType != null)
    {
      generateEncodeStringForArrayType(srcWriter, objectArrayType, objectVar, resultJSONValueVar);
    }
    else if (JClassUtils.isSimpleType(objectType))
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

       * instantiate methods.
       */
      return;
    }

    JArrayType isArray = serializableClass.isArray();
    JEnumType isEnum = serializableClass.isEnum();
    boolean isNative = (isArray == null) && (isEnum == null);

    sourceWriter.print("public static" + (isNative ? " native " : " "));
    String qualifiedSourceName = serializableClass.getQualifiedSourceName();
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

    sourceWriter.print(serializableClass.getQualifiedSourceName());
    sourceWriter.println(" instance) throws "
        + SerializationException.class.getName() + "{");
    sourceWriter.indent();

    JArrayType isArray = serializableClass.isArray();
    if (isArray != null) {
      writeArrayDeserializationStatements(isArray);
    } else if (serializableClass.isEnum() != null) {
      writeEnumDeserializationStatements();
    } else {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

    sourceWriter.print(serializableClass.getQualifiedSourceName());
    sourceWriter.println(" instance) throws "
        + SerializationException.class.getName() + " {");
    sourceWriter.indent();

    JArrayType isArray = serializableClass.isArray();
    if (isArray != null) {
      writeArraySerializationStatements(isArray);
    } else if (serializableClass.isEnum() != null) {
      writeEnumSerializationStatements();
    } else {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

    JTypeParameter isTypeParameter = type.isTypeParameter();
    if (isTypeParameter != null) {
      params.add(isTypeParameter);
    }

    JArrayType isArray = type.isArray();
    if (isArray != null) {
      recordTypeParametersIn(isArray.getComponentType(), params);
    }

    JWildcardType isWildcard = type.isWildcard();
    if (isWildcard != null) {
      for (JClassType bound : isWildcard.getUpperBounds()) {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

  private static JArrayType getArrayType(TypeOracle typeOracle, int rank,
      JType component) {
    assert (rank > 0);

    JArrayType array = null;
    JType currentComponent = component;
    for (int i = 0; i < rank; ++i) {
      array = typeOracle.getArrayType(currentComponent);
      currentComponent = array;
    }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

      tic.setInstantiableSubtypes(success);
      tic.setInstantiable(false);
      return tic;
    }

    JArrayType isArray = classType.isArray();
    if (isArray != null) {
      TypeInfoComputed arrayTic = checkArrayInstantiable(localLogger, isArray, path,
          problems);
      assert getTypeInfoComputed(classType, path, false) != null;
      return arrayTic;
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JArrayType

      TypePath path, ProblemReport problems) {

    JType leafType = array.getLeafType();
    JWildcardType leafWild = leafType.isWildcard();
    if (leafWild != null) {
      JArrayType arrayType = getArrayType(typeOracle, array.getRank(),
          leafWild.getUpperBound());
      return checkArrayInstantiable(logger, arrayType, path, problems);
    }

    JClassType leafClass = leafType.isClassOrInterface();
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.