Examples of TypeInfo


Examples of ariba.util.fieldtype.TypeInfo

    protected Object getValueBody( ExprContext context, Object source ) throws ExprException
    {
        Object v1 = children[0].getValue( context, source );
        Object v2 = children[1].getValue( context, source );
        TypeInfo v1Info = children[0].getTypeInfo();
        if (v1Info == null || v1Info instanceof NullTypeInfo) {
            v1Info = getTypeInfo();
        }
        return ExprOps.divide(
            v1,
            v2,
            v1Info != null? v1Info.getName(): null);
    }
View Full Code Here

Examples of com.alibaba.citrus.generictype.TypeInfo

        }
    }

    private PropertyInfo createMappedProperty(Method javaMethod, String propName, boolean read, int paramIndex) {
        MethodInfo method = factory.getMethod(javaMethod, getType());
        TypeInfo declaringType = method.getDeclaringType();
        TypeInfo type = paramIndex >= 0 ? method.getParameterTypes().get(paramIndex) : method.getReturnType();
        MethodInfo readMethod = read ? method : null;
        MethodInfo writMethod = read ? null : method;

        return new MappedPropertyImpl(propName, declaringType, type, readMethod, writMethod);
    }
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.TypeInfo

  @SuppressWarnings({ "rawtypes", "unchecked" })
  @Override
  public Query<T> setParameter(String name, Object value) {
    //check parameter
   
    TypeInfo typeInfo = meta.getMetaFieldByParameter(name);
    if(typeInfo==null){
      throw new IllegalArgumentException("parameter='" + name
          + "' is not found in the query="+meta.getQuery());
    } else if(typeInfo.getConstantType() != null)
      throw new UnsupportedOperationException("not done here yet, need to validate constant type");

    DboColumnMeta metaFieldDbo = typeInfo.getColumnInfo();
    String colFamily = metaFieldDbo.getOwner().getColumnFamily();
    String columnName = metaFieldDbo.getColumnName();
    MetaClass metaClass = metaInfo.getMetaClass(colFamily);
    MetaField metaField = metaClass.getMetaFieldByCol(targetSubclass, columnName);
   
View Full Code Here

Examples of com.avaje.ebeaninternal.util.ParamTypeHelper.TypeInfo

    return list;
  }

  public Object toObject(Type genericType, String json) throws IOException {

    TypeInfo info = ParamTypeHelper.getTypeInfo(genericType);
    ManyType manyType = info.getManyType();
    switch (manyType) {
    case NONE:
      return toBean(info.getBeanType(), json);

    case LIST:
      return toList(info.getBeanType(), json);

    default:
      throw new IOException("Type " + manyType + " not supported");
    }
  }
View Full Code Here

Examples of com.bj58.spat.gaea.serializer.serializer.TypeInfo

        if (obj == null) {
            SerializerFactory.GetSerializer(null).WriteObject(null, outStream);
            return;
        }
        Class<?> type = obj.getClass();
        TypeInfo typeInfo = GetTypeInfo(type);
        outStream.WriteInt32(typeInfo.TypeId);
        if (outStream.WriteRef(obj)) {
            return;
        }
        for (Field f : typeInfo.Fields) {
View Full Code Here

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

   */
  public final void testFromSpringResourcePositive() {
    String resourceName =
        "testdata/connectorTypeTests/positive/connectorType.xml";
    Resource r = new FileSystemResource(resourceName);
    TypeInfo typeInfo = null;
    boolean exceptionThrown = false;
    try {
      typeInfo = TypeInfo.fromSpringResourceAndThrow(r);
    } catch (TypeInfoException e) {
      exceptionThrown = true;
View Full Code Here

Examples of com.google.feedserver.metadata.TypeInfo

  private static List<ColumnDescription> getColumnDescriptionsForProperty(
      EntityInfo entityInfo,
      PropertyInfo property,
      String prefix) throws FeedServerAdapterException {
    List<ColumnDescription> result = new ArrayList<ColumnDescription>();
    TypeInfo type = entityInfo.getType(property.getTypeName());
    if (GVizTypeConverter.isSimpleType(type) || GVizTypeConverter.isKnownType(type)) {
      result.add(getColumnDescriptionForSimpleType(property, prefix));     
    } else {
      for (PropertyInfo propertyInfo : type.getProperties()) {
        result.addAll(getColumnDescriptionsForProperty(
            entityInfo, propertyInfo, prefix + property.getName()));
      }
    }
    return result;
View Full Code Here

Examples of com.leansoft.mxjc.model.TypeInfo

    for (SEIInfo intf : model.getServiceEndpointInterfaces()) {
      // update method i/o types
      for (MethodInfo method : intf.getMethods()) {
        // input parameter types
        for (ParameterInfo param : method.getParameters()) {
          TypeInfo paramType = param.getType();
          prefixType(paramType, prefix);
        }
        // output type
        TypeInfo returnType = method.getReturnType();
        prefixType(returnType, prefix);
      }
    }
  }
View Full Code Here

Examples of com.pv.sdm.util.lang.reflect.TypeInfo

      if(List.class.isAssignableFrom(returnType)
            || Set.class.isAssignableFrom(returnType)
            || Collection.class.equals(returnType)) {
         //TODO shouldn't TypeInfo handle this? -bjh
         column.setReturnTypeInfo(
               new TypeInfo(null, method.getGenericReturnType()));
//                     info.getGenericArgumentType()));
      }
      else {
         column.setReturnTypeInfo(new TypeInfo(null, returnType));
      }
           
      column.setName(name);
      column.setMethod(method);
      column.setTableResolver(new IResolver<TableMetadata>() {
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.metadata.TypeInfo

    private void validateVTMethodUnchecked(Class<?> clazz, Method classMethod) {
        String mthName = clazz.getName() + "::" + classMethod.getName() + "()";
        System.err.println(mthName);
        Method staticMethod = findStaticCompanionMethod(clazz, classMethod);
        Assert.assertNotNull("Static companion for " + mthName + " not found", staticMethod);
        TypeInfo returnTypeInfo = classMethod.getAnnotation(TypeInfo.class);
        Assert.assertEquals("Returns types for static and class methods " + mthName + " do not coincide", staticMethod.getReturnType(), getUnboxedType(classMethod.getReturnType(), returnTypeInfo));
    }
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.