Examples of ArrayType


Examples of com.gwtent.reflection.client.ArrayType

        sb.append(", ");
      } else {
        needComma = true;
      }
      if ((isVarArgs() && i == c - 1) && (param.getType() != null)) {
        ArrayType arrayType = param.getType().isArray();
        assert (arrayType != null);
        sb.append(arrayType.getComponentType().getParameterizedQualifiedSourceName());
        sb.append("...");
      } else {
        sb.append(param.getTypeName());
      }
      sb.append(" ");
View Full Code Here

Examples of com.icona.tree.nodes.Type.ArrayType


    // $ANTLR start "abstract_declarator"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:201:1: abstract_declarator returns [ArrayType arrayType] : ( ( '[' (c= constant_expression )? ']' )+ |);
    public final ArrayType abstract_declarator() throws RecognitionException {
        ArrayType arrayType = null;


        Expression c =null;



          arrayType =null;
          Expression dimension=null;

        try {
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:208:3: ( ( '[' (c= constant_expression )? ']' )+ |)
            int alt27=2;
            int LA27_0 = input.LA(1);

            if ( (LA27_0==65) ) {
                alt27=1;
            }
            else if ( (LA27_0==EOF||LA27_0==28||LA27_0==34||LA27_0==42||LA27_0==93) ) {
                alt27=2;
            }
            else {
                if (state.backtracking>0) {state.failed=true; return arrayType;}
                NoViableAltException nvae =
                    new NoViableAltException("", 27, 0, input);

                throw nvae;

            }
            switch (alt27) {
                case 1 :
                    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:216:3: ( '[' (c= constant_expression )? ']' )+
                    {
                    if ( state.backtracking==0 ) { arrayType =new ArrayType(); }

                    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:217:4: ( '[' (c= constant_expression )? ']' )+
                    int cnt26=0;
                    loop26:
                    do {
                        int alt26=2;
                        int LA26_0 = input.LA(1);

                        if ( (LA26_0==65) ) {
                            alt26=1;
                        }


                        switch (alt26) {
                      case 1 :
                          // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:217:5: '[' (c= constant_expression )? ']'
                          {
                          match(input,65,FOLLOW_65_in_abstract_declarator639); if (state.failed) return arrayType;

                          if ( state.backtracking==0 ) {dimension=null;}

                          // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:219:4: (c= constant_expression )?
                          int alt25=2;
                          int LA25_0 = input.LA(1);

                          if ( ((LA25_0 >= CHARACTER_LITERAL && LA25_0 <= DECIMAL_LITERAL)||LA25_0==FLOATING_POINT_LITERAL||LA25_0==HEX_LITERAL||LA25_0==IDENTIFIER||LA25_0==OCTAL_LITERAL||LA25_0==STRING_LITERAL||LA25_0==20||LA25_0==25||LA25_0==27||LA25_0==29||LA25_0==32||(LA25_0 >= 35 && LA25_0 <= 36)||LA25_0==98) ) {
                              alt25=1;
                          }
                          switch (alt25) {
                              case 1 :
                                  // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:219:5: c= constant_expression
                                  {
                                  pushFollow(FOLLOW_constant_expression_in_abstract_declarator653);
                                  c=constant_expression();

                                  state._fsp--;
                                  if (state.failed) return arrayType;

                                  if ( state.backtracking==0 ) {
                                        dimension=c; 
                                      }

                                  }
                                  break;

                          }


                          if ( state.backtracking==0 ) {arrayType.addDimensionExpression(dimension);}

                          match(input,66,FOLLOW_66_in_abstract_declarator667); if (state.failed) return arrayType;

                          }
                          break;
View Full Code Here

Examples of com.impossibl.postgres.types.ArrayType

          break;
        case Polygon:
          targetType = double[][].class;
          break;
        case Array:
          ArrayType arrayType = (ArrayType) sourceType;
          targetType = Array.newInstance(mapGetType(format, arrayType.getElementType(), typeMap, context), 0).getClass();
          break;
        default:
          break;
      }
View Full Code Here

Examples of com.language.datatypes.ArrayType

    this.mode = mode;
  }
  public String toString(){
    String str=this.name + " : " + this.mode + " " + this.data_type.name;
    if(this.data_type instanceof ArrayType){
      ArrayType at = (ArrayType) this.data_type;
      str +=" RANGE ( "+ at.starting_index + " "+ at.indexing_scheme + " "+ at.ending_index + " );";
    }
    return str;
  }
View Full Code Here

Examples of com.mysema.query.sql.types.ArrayType

                    java.sql.Time.class, Double.class, Float.class);
            for (Class<?> cl : classes) {
                int code = jdbcTypeMapping.get(cl);
                String name = templates.getTypeNameForCode(code);
                Class<?> arrType = Array.newInstance(cl, 0).getClass();
                javaTypeMapping.register(new ArrayType(arrType, name));
                if (Primitives.isWrapperType(cl) && !cl.equals(Byte.class)) {
                    cl = Primitives.unwrap(cl);
                    arrType = Array.newInstance(cl, 0).getClass();
                    javaTypeMapping.register(new ArrayType(arrType, name));
                }
            }
        }

    }
View Full Code Here

Examples of com.sun.mirror.type.ArrayType

    public boolean isArrayButNotByteArray(TypeMirror t) {
        if(!isArray(t))
            return false;

        ArrayType at = (ArrayType) t;
        TypeMirror ct = at.getComponentType();

        return !ct.equals(primitiveByte);
    }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.ArrayType

      TypeName base = type.getArrayBase() ;
      while(base.isArray()) {
        numdim++ ;
        base = base.getArrayBase() ;
      }
      return new ArrayType(makeType(base),numdim) ;
    }
    case BOOLEAN: return Type.BOOLEAN ;
    case BYTE: return Type.BYTE ;
    case CHAR: return Type.CHAR ;
    case DOUBLE: return Type.DOUBLE ;
View Full Code Here

Examples of com.sun.tools.javac.code.Type.ArrayType

      // Simple type.
      return baseType;
    } else if (isArray && !isGeneric) {
      // Array type, not generic.
      ClassSymbol arraySymbol = getSymtab().arrayClass;
      return new ArrayType(baseType, arraySymbol);
    } else if (!isArray && isGeneric) {
      return new ClassType(Type.noType, typeParams, baseType.tsym);
    } else {
      throw new IllegalArgumentException("Unsupported arguments to getType");
    }
View Full Code Here

Examples of io.crate.types.ArrayType

    @Test
    public void testParameterSubcript() throws Exception {
        SelectAnalysis analysis = analyze("select friends[?], counters[?], ['a','b','c'][?] from users",
                new Object[]{"id",2,3});
        assertThat(analysis.outputSymbols().get(0), isReference("friends.id", new ArrayType(DataTypes.LONG)));
        assertThat(analysis.outputSymbols().get(1), isFunction(SubscriptFunction.NAME,
                Arrays.<DataType>asList(new ArrayType(DataTypes.LONG), DataTypes.INTEGER)));
        assertThat(analysis.outputSymbols().get(2), isLiteral("c", DataTypes.STRING));
    }
View Full Code Here

Examples of javax.lang.model.type.ArrayType

        return !ct.equals(primitiveByte);
    }

    public TypeMirror getComponentType(TypeMirror t) {
        if (isArray(t)) {
            ArrayType at = (ArrayType) t;
            return at.getComponentType();
        }

        throw new IllegalArgumentException();
    }
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.