Examples of fullName()


Examples of com.sun.codemodel.JClass.fullName()

    final JClass extends1 = implClass._extends();

    implClass._implements(Cloneable.class);
    final Collection<JFieldVar> fields = Util.getAllFieldsFields(classOutline, false);

    LOG.info("generate clone fields#: " + implClass.name() + " (" + fields.size() + ") " + extends1.fullName());

    // generate hashCode() and equals()-method
    final JMethod clone = implClass.method(JMod.PUBLIC, implClass, "clone");

    // annotate with @Override
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

    clone.annotate(Override.class);
    // clone._throws(CloneNotSupportedException.class);

    final JVar copy = clone.body().decl(implClass, "copy");

    if (extends1.fullName().equals("java.lang.Object")) {
      final JTryBlock ctry = clone.body()._try();
      ctry.body().assign(copy, JExpr.cast(implClass, JExpr._super().invoke("clone")));
      ctry._catch(cloneNotSupportedException.boxify()).body()._throw(JExpr._new(internalError.boxify()).arg(JExpr.direct("_x.toString()")));
    } else {
      clone.body().assign(copy, JExpr.cast(implClass, JExpr._super().invoke("clone")));
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

      } else if (jFieldVar.type().fullName().startsWith("java.util.List")) {
        // LOG.info(">>>>>>>>"+jFieldVar.type().boxify().name());

        final List<JClass> type = jFieldVar.type().boxify().getTypeParameters();
        JClass clazz = type.get(0);
        if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {
          LOG.info("111>>>>>>>>" + clazz.fullName());
          if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {

            final List<JClass> typeParameters = clazz.getTypeParameters();
            final JClass clazz2 = typeParameters.get(0);
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

        // LOG.info(">>>>>>>>"+jFieldVar.type().boxify().name());

        final List<JClass> type = jFieldVar.type().boxify().getTypeParameters();
        JClass clazz = type.get(0);
        if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {
          LOG.info("111>>>>>>>>" + clazz.fullName());
          if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {

            final List<JClass> typeParameters = clazz.getTypeParameters();
            final JClass clazz2 = typeParameters.get(0);
            LOG.info("222>>>>>>>>" + clazz2.fullName());
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

        final List<JClass> type = jFieldVar.type().boxify().getTypeParameters();
        JClass clazz = type.get(0);
        if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {
          LOG.info("111>>>>>>>>" + clazz.fullName());
          if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {

            final List<JClass> typeParameters = clazz.getTypeParameters();
            final JClass clazz2 = typeParameters.get(0);
            LOG.info("222>>>>>>>>" + clazz2.fullName());
            if (clazz2.fullName().startsWith("? extends")) {
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

          LOG.info("111>>>>>>>>" + clazz.fullName());
          if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {

            final List<JClass> typeParameters = clazz.getTypeParameters();
            final JClass clazz2 = typeParameters.get(0);
            LOG.info("222>>>>>>>>" + clazz2.fullName());
            if (clazz2.fullName().startsWith("? extends")) {
              clazz = clazz2._extends();
              // if (clazz2._extends().fullName().equals("java.lang.Object")) {
              LOG.info("333a>>>>>>>" + clazz.fullName());
            } else {
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

          if (clazz.fullName().startsWith("javax.xml.bind.JAXBElement<")) {

            final List<JClass> typeParameters = clazz.getTypeParameters();
            final JClass clazz2 = typeParameters.get(0);
            LOG.info("222>>>>>>>>" + clazz2.fullName());
            if (clazz2.fullName().startsWith("? extends")) {
              clazz = clazz2._extends();
              // if (clazz2._extends().fullName().equals("java.lang.Object")) {
              LOG.info("333a>>>>>>>" + clazz.fullName());
            } else {
              clazz = clazz2;
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

  public JDefinedClass generateSerializerVersionTest( @Nonnull String serializerClassName, @Nonnull DomainObjectDescriptor domainObjectDescriptor ) throws JClassAlreadyExistsException {
    JClass domainType = codeGenerator.ref( domainObjectDescriptor.getQualifiedName() );
    JClass serializerClass = codeGenerator.ref( serializerClassName );

    //the class
    JDefinedClass testClass = codeModel._class( createSerializerVersionTestName( serializerClass.fullName() ) )._extends( createVersionExtendsClass( domainType, serializerClass ) );

    //getSerializer
    createGetSerializerMethod( testClass, serializerClass, domainType );
    createVersionVerifyMethod( testClass, serializerClass, domainObjectDescriptor );
    createVersionsDataPoint( testClass, serializerClass, domainType, domainObjectDescriptor );
View Full Code Here

Examples of com.sun.codemodel.JClass.fullName()

  @Nonnull
  public JDefinedClass generateSerializer( @Nonnull DomainObjectDescriptor domainObjectDescriptor ) throws JClassAlreadyExistsException {
    JClass domainType = codeGenerator.ref( domainObjectDescriptor.getQualifiedName() );

    //the class
    JDefinedClass serializerClass = codeModel._class( createSerializerClassName( domainType.fullName() ) )._extends( createSerializerExtendsExpression( domainType ) );

    //the constructor
    JMethod constructor = createConstructor( serializerClass, domainObjectDescriptor );

    JMethod serializeMethod = createSerializeMethodStub( domainType, serializerClass );
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fullName()

      // Get the factory class from the default package.
      final JDefinedClass factoryClass = packageoutline.objectFactory();
      if (factoryClass != null) {
        // LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME+" pkg:          " + pkg.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.fullName());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
        factoryClass.methods().clear();
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
//        factoryClass.fields().clear();
        final JPackage parent = (JPackage)factoryClass.parentContainer();
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.