File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
exist-core/src/main/java/org/exist/xquery Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,15 @@ public void dump(final ExpressionDumper dumper) {
197
197
dumper .endIndent ().nl ();
198
198
}
199
199
200
+ public String toString () {
201
+ final StringBuilder result = new StringBuilder ();
202
+ result .append ("count " );
203
+ result .append ("$" ).append (this .varName );
204
+ return result .toString ();
205
+ }
206
+
200
207
@ Override
201
208
public void accept (final ExpressionVisitor visitor ) {
202
209
visitor .visitCountClause (this );
203
210
}
204
- }
211
+ }
Original file line number Diff line number Diff line change @@ -112,6 +112,19 @@ public void dump(ExpressionDumper dumper) {
112
112
dumper .nl ();
113
113
}
114
114
115
+ @ Override
116
+ public String toString () {
117
+ final StringBuilder builder = new StringBuilder ();
118
+ builder .append ("order by " );
119
+ for (int i = 0 ; i < orderSpecs .length ; i ++) {
120
+ if (i > 0 ) {
121
+ builder .append (", " );
122
+ }
123
+ builder .append (orderSpecs [i ]);
124
+ }
125
+ return builder .toString ();
126
+ }
127
+
115
128
@ Override
116
129
public void accept (ExpressionVisitor visitor ) {
117
130
visitor .visitOrderByClause (this );
You can’t perform that action at this time.
0 commit comments