Package com.caucho.quercus.marshal

Examples of com.caucho.quercus.marshal.MarshalFactory.create()


    int size = getSize();

    T[] array = T[].class.cast(Array.newInstance(elementType, size));

    MarshalFactory factory = env.getModuleContext().getMarshalFactory();
    Marshal elementMarshal = factory.create(elementType);

    int i = 0;

    for (Entry ptr = getHead(); ptr != null; ptr = ptr.getNext()) {
      Array.set(array, i++, elementMarshal.marshal(env,
View Full Code Here


              throw new QuercusException(L.l("pass thru must be Value for {0}",
                                             _name));
            }
          }
          else
            _marshalArgs[i] = marshalFactory.create(argType, isNotNull);
        }

        _unmarshalReturn = marshalFactory.create(_retType,
                                                 false,
                                                 returnNullAsFalse);
View Full Code Here

          }
          else
            _marshalArgs[i] = marshalFactory.create(argType, isNotNull);
        }

        _unmarshalReturn = marshalFactory.create(_retType,
                                                 false,
                                                 returnNullAsFalse);
      } finally {
        _isInit = true;
      }
View Full Code Here

    int size = getSize();

    Object array = Array.newInstance(elementType, size);

    MarshalFactory factory = env.getModuleContext().getMarshalFactory();
    Marshal elementMarshal = factory.create(elementType);

    int i = 0;

    for (Map.Entry<Value, Value> entry : entrySet()) {
      Array.set(array, i++, elementMarshal.marshal(env,
View Full Code Here

    // XXX: needs to go into constructor
    Class componentClass = getType().getComponentType();

    MarshalFactory factory = getModuleContext().getMarshalFactory();
    Marshal componentClassMarshal = factory.create(componentClass);

    int length = Array.getLength(obj);
     
    for (int i = 0; i < length; i++) {
      Object component = Array.get(obj, i);
View Full Code Here

        continue;
      else if (field.isAnnotationPresent(Hide.class))
        continue;

      MarshalFactory factory = moduleContext.getMarshalFactory();
      Marshal marshal = factory.create(field.getType(), false);
     
      _fieldMap.put(new ConstStringValue(field.getName()),
        new FieldMarshalPair(field, marshal));
    }
View Full Code Here

    int size = getSize();

    Object array = Array.newInstance(elementType, size);

    MarshalFactory factory = env.getModuleContext().getMarshalFactory();
    Marshal elementMarshal = factory.create(elementType);

    int i = 0;

    for (Entry ptr = getHead(); ptr != null; ptr = ptr.getNext()) {
      Array.set(array, i++, elementMarshal.marshal(env,
View Full Code Here

          }
          else if (isExpectBoolean) {
            _marshalArgs[i] = marshalFactory.createExpectBoolean();
          }
          else {
            _marshalArgs[i] = marshalFactory.create(argType, isNotNull);
          }
        }

        _unmarshalReturn = marshalFactory.create(_retType,
                                                 false,
View Full Code Here

          else {
            _marshalArgs[i] = marshalFactory.create(argType, isNotNull);
          }
        }

        _unmarshalReturn = marshalFactory.create(_retType,
                                                 false,
                                                 returnNullAsFalse);
      } finally {
        _isInit = true;
      }
View Full Code Here

    for (Field field : fields) {
      if (Modifier.isStatic(field.getModifiers()))
        continue;

      MarshalFactory factory = moduleContext.getMarshalFactory();
      Marshal marshal = factory.create(field.getType(), false);
     
      _fieldMap.put(new ConstStringValue(field.getName()),
                    new FieldMarshalPair(field, marshal));
    }
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.