コード例 #1
0
  /** {@inheritDoc} */
  @Override
  protected void toParsedText(StringBuilder writer, boolean actual) {

    // State field expression
    if (stateFieldExpression != null) {
      stateFieldExpression.toParsedText(writer, actual);
    }

    if (hasSpaceAfterStateFieldPathExpression) {
      writer.append(SPACE);
    }

    // '='
    if (hasEqualSign) {
      writer.append(EQUAL);
    }

    if (hasSpaceAfterEqualSign) {
      writer.append(SPACE);
    }

    // New value
    if (newValue != null) {
      newValue.toParsedText(writer, actual);
    }
  }
コード例 #2
0
  /** {@inheritDoc} */
  @Override
  protected void toParsedText(StringBuilder writer, boolean actual) {

    // Expression
    if (hasExpression()) {
      expression.toParsedText(writer, actual);
      writer.append(SPACE);
    }

    // 'NOT'
    if (notIdentifier != null) {
      writer.append(actual ? notIdentifier : NOT);
      writer.append(SPACE);
    }

    // Identifier
    if (betweenIdentifier != null) {
      writer.append(actual ? betweenIdentifier : BETWEEN);
    }

    if (hasSpaceAfterBetween) {
      writer.append(SPACE);
    }

    // Lower bound expression
    if (lowerBoundExpression != null) {
      lowerBoundExpression.toParsedText(writer, actual);
    }

    if (hasSpaceAfterLowerBound) {
      writer.append(SPACE);
    }

    // 'AND'
    if (andIdentifier != null) {
      writer.append(actual ? andIdentifier : AND);
    }

    if (hasSpaceAfterAnd) {
      writer.append(SPACE);
    }

    // Upper bound expression
    if (upperBoundExpression != null) {
      upperBoundExpression.toParsedText(writer, actual);
    }
  }
コード例 #3
0
  /** {@inheritDoc} */
  @Override
  void toParsedText(StringBuilder writer, boolean includeVirtual) {

    // Update clause
    updateClause.toParsedText(writer, includeVirtual);

    if (hasSpaceAfterUpdateClause) {
      writer.append(SPACE);
    }

    // Where clause
    if (whereClause != null) {
      whereClause.toParsedText(writer, includeVirtual);
    }
  }