Package rocket.serialization.rebind.switchstatement

Examples of rocket.serialization.rebind.switchstatement.SwitchTemplatedFile


    final NewMethod newMethod = method.copy(serializationFactory);
    newMethod.setAbstract(false);
    newMethod.setFinal(true);
    newMethod.setNative(true);

    final SwitchTemplatedFile body = new SwitchTemplatedFile();

    final Iterator<Map.Entry<Type, Type>> iterator = objectReaders.entrySet().iterator();
    while (iterator.hasNext()) {
      final Map.Entry<Type, Type> entry = iterator.next();

      final Type type = entry.getKey();
      if (false == this.isSerializable(type)) {
        continue;
      }

      final Type objectReader = entry.getValue();
      final Field objectReaderSingleton = objectReader.getField(SerializationConstants.SINGLETON);

      body.register(type, objectReaderSingleton);

      context.debug(type.getName() + " = " + objectReader.getName());
    }

    newMethod.setBody(body);
View Full Code Here


    final NewMethod newMethod = method.copy(serializationFactory);
    newMethod.setAbstract(false);
    newMethod.setFinal(true);
    newMethod.setNative(true);

    final SwitchTemplatedFile body = new SwitchTemplatedFile();

    final Iterator<Map.Entry<Type, Type>> iterator = objectWriters.entrySet().iterator();
    while (iterator.hasNext()) {
      final Map.Entry<Type, Type> entry = iterator.next();

      final Type type = entry.getKey();
      if (false == this.isSerializable(type)) {
        continue;
      }

      final Type objectWriter = entry.getValue();
      final Field objectWriterSingleton = objectWriter.getField(SerializationConstants.SINGLETON);

      body.register(type, objectWriterSingleton);

      context.debug(type.getName() + " = " + objectWriter.getName());
    }

    newMethod.setBody(body);
View Full Code Here

TOP

Related Classes of rocket.serialization.rebind.switchstatement.SwitchTemplatedFile

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.