Package rocket.generator.rebind

Examples of rocket.generator.rebind.GeneratorContext.unbranch()


    // rename parameter to a known name.
    final NewMethodParameter parameter = (NewMethodParameter) newMethod.getParameters().get(0);
    parameter.setName(Constants.CREATE_ROOT_NAME_PARAMETER);
    parameter.setFinal(true);

    context.unbranch();
  }

  /**
   * Returns the appropriate LoggingFactoryConfig depending on whether this
   * permutation is including or excluding logging statements.
View Full Code Here


    if (constructor.getVisibility() != Visibility.PUBLIC) {
      throwTargetLoggerConstructorIsNotPublic(constructor);
    }

    context.debug("Found " + constructor);
    context.unbranch();

    return constructor;
  }

  protected void throwTargetLoggerIsNotALogger(final Type logger) {
View Full Code Here

      template.setReadMethod(readMethod);

      body.add(template);
    }

    context.unbranch();
  }

  protected void throwFinalFieldsCannotBeDeserialized(final Field field) {
    throw new JsonSerializerGeneratorException("Final instance fields cannot be deserialized, list: " + field);
  }
View Full Code Here

      final Type serializer = this.getSerializer(field);

      body.addField(javascriptPropertyName, fieldGetter, serializer);
    } // while

    context.unbranch();
  }

  /**
   * Creates a method that uses jsni to retrieve a list from a given instance
   */
 
View Full Code Here

        return true;
      }
    };
    visitor.start(type);

    context.unbranch();
    return methods;
  }

  /**
   * Validates that the given method doesnt have any parameters and returns
View Full Code Here

    context.debug("extends " + superType.getName());
    context.debug("implements: " + type.getName());
    context.debug("public");
    context.debug("final");

    context.unbranch();

    return newType;
  }

  protected Type getImageFactoryImpl() {
View Full Code Here

      if (prefetch != null) {
        urls.add(prefetch);
      }
    }

    context.unbranch();

    return urls;
  }

  /**
 
View Full Code Here

    final CreateImageTemplatedFile body = new CreateImageTemplatedFile();
    body.setUrl(url);
    body.setType(imageType);
    newMethod.setBody(body);

    context.unbranch();

    return prefetchUrl;
  }

  /**
 
View Full Code Here

    while (i.hasNext()) {
      final String url = i.next();
      context.debug(url);
    }

    context.unbranch();
  }

  /**
   * Sub classes need to report the maximum data url size.
   *
 
View Full Code Here

    final NewConcreteType subClass = context.newConcreteType(newTypeName);
    subClass.setAbstract(false);
    subClass.setFinal(true);
    subClass.setSuperType(cometClient);

    context.unbranch();

    return subClass;
  }

  /**
 
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.