Package rocket.generator.rebind.codeblock

Examples of rocket.generator.rebind.codeblock.StringLiteral


      if (Constants.FIELD_SETTER.equals(name)) {
        value = this.getFieldSetter();
        break;
      }
      if (Constants.JAVASCRIPT_PROPERTY_NAME.equals(name)) {
        value = new StringLiteral(this.getJavascriptPropertyName());
        break;
      }
      if (Constants.SERIALIZER.equals(name)) {
        value = this.getSerializer();
        break;
View Full Code Here


  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.IF_THEN_CREATE_LOGGER_NAME.equals(name)) {
        value = new StringLiteral(this.getName());
        break;
      }
      if (Constants.IF_THEN_CREATE_LOGGER_LOGGER.equals(name)) {
        value = this.getLogger();
        break;
View Full Code Here

    Checker.notNull("method:method", setter);
    this.method = setter;
  }

  protected StringLiteral getTestName() {
    return new StringLiteral(this.getMethod().getName());
  }
View Full Code Here

  protected BooleanLiteral isMethodNative() {
    return new BooleanLiteral(this.getTargetMethod().isNative());
  }

  protected StringLiteral getEnclosingType() {
    return new StringLiteral(this.getTargetMethod().getEnclosingType().getName());
  }
View Full Code Here

      }
    };
  }

  protected StringLiteral getMethodName() {
    return new StringLiteral(this.getMethod().getName());
  }
View Full Code Here

  protected StringLiteral getMethodName() {
    return new StringLiteral(this.getMethod().getName());
  }

  protected StringLiteral getMethodReturnType() {
    return new StringLiteral(this.getMethod().getReturnType().getName());
  }
View Full Code Here

        final Iterator<MethodParameter> iterator = parameters.iterator();
        while (iterator.hasNext()) {
          final MethodParameter parameter = iterator.next();

          // write a quoted string holding the parameter type
          new StringLiteral(parameter.getType().getRuntimeName()).write(writer);

          if (iterator.hasNext()) {
            writer.print(",");
          }
        }
View Full Code Here

  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.MAP_ENTRY_ADD_KEY.equals(name)) {
        value = new StringLiteral(this.getKey());
        break;
      }
      if (Constants.MAP_ENTRY_ADD_VALUE.equals(name)) {
        value = this.getValue();
        break;
View Full Code Here

  public Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.BEAN_ID.equals(name)) {
        value = new StringLiteral(this.getBeanId());
        break;
      }
      if (Constants.BEAN_FACTORY.equals(name)) {
        value = this.getBeanFactory();
      }
View Full Code Here

  @Override
  protected Object getValue0(final String name) {
    Object value = null;
    while (true) {
      if (Constants.ADD_PARAMETER_TYPE_TYPENAME.equals(name)) {
        value = new StringLiteral(this.getParameter().getType().getName());
        break;
      }
      break;
    }
    return value;
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.