/** {@inheritDoc} */
 @Override
 protected void toTextInternal(Appendable writer) throws IOException {
   writer.append(getArithmeticSign());
   if (stateObject != null) {
     writer.append(SPACE);
     stateObject.toString(writer);
   }
 }
コード例 #2
0
  /** {@inheritDoc} */
  @Override
  protected void toTextInternal(Appendable writer) throws IOException {

    if (stateObject != null) {
      stateObject.toString(writer);
    }

    if (!isDefault()) {
      writer.append(SPACE);
      writer.append(ordering.name());
    }
  }
コード例 #3
0
  /** {@inheritDoc} */
  @Override
  protected void toTextEncapsulatedExpression(Appendable writer) throws IOException {

    // Specification
    if (specification != Specification.DEFAULT) {
      writer.append(specification.name());
      writer.append(SPACE);
    }

    // Trim character
    if (hasTrimCharacter()) {
      trimCharacter.toString(writer);
      writer.append(SPACE);
    }

    // FROM
    if ((specification != Specification.DEFAULT) || hasTrimCharacter()) {
      writer.append(FROM);
      writer.append(SPACE);
    }

    // String primary
    super.toTextEncapsulatedExpression(writer);
  }