Package rocket.serialization.rebind.read

Examples of rocket.serialization.rebind.read.ReadFieldsTemplatedFile


    final NewMethodParameter objectInputStream = newMethod.newParameter();
    objectInputStream.setName(SerializationConstants.CLIENT_OBJECT_READER_IMPL_READ_FIELDS_OBJECT_INPUT_STREAM_PARAMETER);
    objectInputStream.setFinal(true);
    objectInputStream.setType(this.getObjectInputStream());

    final ReadFieldsTemplatedFile body = new ReadFieldsTemplatedFile();
    newMethod.setBody(body);
    body.setType(type);

    // add all fields to the template
    final Iterator<Field> fields = this.filterSerializableFields(type.getFields()).iterator();
    int fieldCount = 0;
    context.branch();

    while (fields.hasNext()) {
      final Field field = fields.next();
      final Method setter = this.createFieldSetter(reader, field);
      body.addFieldSetter(setter);

      fieldCount++;
    }

    context.unbranch();
View Full Code Here

TOP

Related Classes of rocket.serialization.rebind.read.ReadFieldsTemplatedFile

Copyright © 2018 www.massapicom. 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.