Package rocket.generator.rebind.type

Examples of rocket.generator.rebind.type.NewConcreteType.newConstructor()


    // add an annotation that marks the type being handled by this
    // ObjectReader
    newConcreteType.addMetaData(SerializationConstants.SERIALIZABLE_TYPE, type.getName());

    // create a public no arguments constructor.
    final NewConstructor constructor = newConcreteType.newConstructor();
    constructor.setBody(EmptyCodeBlock.INSTANCE);
    constructor.setVisibility(Visibility.PUBLIC);

    return newConcreteType;
  }
View Full Code Here


    newConcreteType.setSuperType(objectWriterSuperType);
    context.debug("extends " + objectWriterSuperType);

    newConcreteType.addMetaData(SerializationConstants.SERIALIZABLE_TYPE, type.getName());

    final NewConstructor constructor = newConcreteType.newConstructor();
    constructor.setBody(EmptyCodeBlock.INSTANCE);
    constructor.setVisibility(Visibility.PUBLIC);
    return newConcreteType;
  }
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.