Package rocket.generator.rebind.codeblock

Examples of rocket.generator.rebind.codeblock.StringLiteral


  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.CASE_SERIALIZED_TYPE.equals(name)) {
        value = new StringLiteral(this.getSerializedType().getRuntimeName());
        break;
      }
      if (Constants.CASE_STATEMENT_SINGLETON.equals(name)) {
        value = this.getSingleton();
        break;
View Full Code Here


  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.REGISTER_FACTORY_BEAN_BEAN_ID.equals(name)) {
        value = new StringLiteral(this.getBeanId());
        break;
      }
      if (Constants.REGISTER_FACTORY_BEAN_FACTORY_BEAN.equals(name)) {
        value = this.getFactoryBean();
        break;
View Full Code Here

        break;
      }

      // will default to String for List/Set/Map which wont have set the
      // propertyType of any StringValues
      literal = new StringLiteral(this.getValue());
      break;
    }

    literal.write(writer);
  }
View Full Code Here

  public void write(final SourceWriter writer) {
    writer.print("return ");

    final StringBuffer buffer = this.getBuffer();
    new StringLiteral(buffer.toString()).write(writer);

    writer.println(";");
  }
View Full Code Here

  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.ID.equals(name)) {
        value = new StringLiteral(this.getId());
        break;
      }
      if (Constants.TYPE.equals(name)) {
        value = this.getType();
        break;
View Full Code Here

  protected Object getValue0(final String name) {
    Object value = null;

    if (ImageFactoryConstants.URL_TEMPLATE_PLACEHOLDER.equals(name)) {
      value = new StringLiteral(this.getUrl());
    }
    if (ImageFactoryConstants.IMAGE_TYPE_TEMPLATE_PLACEHOLDER.equals(name)) {
      value = this.getType();
    }
View Full Code Here

  public void write(final SourceWriter writer) {
    writer.print("return ");

    final StringBuffer buffer = this.getBuffer();
    new StringLiteral(buffer.toString()).write(writer);

    writer.println(";");
  }
View Full Code Here

          if (i.hasNext()) {
            commaSeparated.append(',');
          }
        }

        new StringLiteral(commaSeparated.toString()).write(writer);
        writer.println(";");
      }
    };
    newMethod.setBody(commaSeparatedList);
View Full Code Here

      if (Constants.WRITE_FIELD_FIELD_GETTER.equals(name)) {
        value = this.getFieldGetter();
        break;
      }
      if (Constants.WRITE_FIELD_JAVASCRIPT_PROPERTY_NAME.equals(name)) {
        value = new StringLiteral(this.getJavascriptPropertyName());
        break;
      }
      if (Constants.WRITE_FIELD_SERIALIZER.equals(name)) {
        value = this.getSerializer();
        break;
View Full Code Here

  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (RequestParametersConstants.ADD_PARAMETER_HTTP_REQUEST_PARAMETER_NAME.equals(name)) {
        value = new StringLiteral(this.getHttpRequestParameterName());
        break;
      }
      if (RequestParametersConstants.ADD_PARAMETER_PARAMETER.equals(name)) {
        value = this.getParameter();
        break;
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.codeblock.StringLiteral

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.