@Override
    public NumberExpression<Integer> length() {
        if (length == null) {
            length = NumberConstant.create(constant.length());
        }
        return length;
    }
StringConstant represents String constants

@author tiwe
querydsl-core/src/test/java/com/querydsl/core/StringConstant.java