You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a new {@link Comparison} from simple {@literal StringP} arguments
64
-
* @param unqualifiedColumnName gets turned in a {@link Expressions#just(String)} and is expected to be an unqualified unique column name but also could be an verbatim expression. Must not be {@literal null}.
65
+
*
66
+
* @param unqualifiedColumnName gets turned in a {@link Expressions#just(String)} and is expected to be an unqualified
67
+
* unique column name but also could be an verbatim expression. Must not be {@literal null}.
65
68
* @param comparator must not be {@literal null}.
66
69
* @param rightValue is considered a {@link Literal}. Must not be {@literal null}.
67
-
* @return a new {@literal Comparison} of the first with the third argument using the second argument as comparison operator. Guaranteed to be not {@literal null}.
68
-
*
70
+
* @return a new {@literal Comparison} of the first with the third argument using the second argument as comparison
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/DelegatingVisitor.java
+13-8
Original file line number
Diff line number
Diff line change
@@ -26,18 +26,21 @@
26
26
* Abstract base class for delegating {@link Visitor} implementations. This class implements a delegation pattern using
27
27
* visitors. A delegating {@link Visitor} can implement {@link #doEnter(Visitable)} and {@link #doLeave(Visitable)}
28
28
* methods to provide its functionality.
29
-
* <p/>
29
+
* <p>
30
30
* <h3>Delegation</h3> Typically, a {@link Visitor} is scoped to a single responsibility. If a {@link Visitor segment}
31
31
* requires {@link #doEnter(Visitable) processing} that is not directly implemented by the visitor itself, the current
32
32
* {@link Visitor} can delegate processing to a {@link DelegatingVisitor delegate}. Once a delegation is installed, the
33
33
* {@link DelegatingVisitor delegate} is used as {@link Visitor} for the current and all subsequent items until it
34
34
* {@link #doLeave(Visitable) signals} that it is no longer responsible.
35
-
* <p/>
35
+
* </p>
36
+
* <p>
36
37
* Nested visitors are required to properly signal once they are no longer responsible for a {@link Visitor segment} to
37
38
* step back from the delegation. Otherwise, parents are no longer involved in the visitation.
38
-
* <p/>
39
+
* </p>
40
+
* <p>
39
41
* Delegation is recursive and limited by the stack size.
40
-
*
42
+
* </p>
43
+
*
41
44
* @author Mark Paluch
42
45
* @since 1.1
43
46
* @see FilteredSubtreeVisitor
@@ -49,11 +52,12 @@ abstract class DelegatingVisitor implements Visitor {
49
52
50
53
/**
51
54
* Invoked for a {@link Visitable segment} when entering the segment.
52
-
* <p/>
55
+
* <p>
53
56
* This method can signal whether it is responsible for handling the {@link Visitor segment} or whether the segment
54
57
* requires delegation to a sub-{@link Visitor}. When delegating to a sub-{@link Visitor}, {@link #doEnter(Visitable)}
55
58
* is called on the {@link DelegatingVisitor delegate}.
56
-
*
59
+
* </p>
60
+
*
57
61
* @param segment must not be {@literal null}.
58
62
* @return
59
63
*/
@@ -86,11 +90,12 @@ public final void enter(Visitable segment) {
86
90
87
91
/**
88
92
* Invoked for a {@link Visitable segment} when leaving the segment.
89
-
* <p/>
93
+
* <p>
90
94
* This method can signal whether this {@link Visitor} should remain responsible for handling subsequent
91
95
* {@link Visitor segments} or whether it should step back from delegation. When stepping back from delegation,
92
96
* {@link #doLeave(Visitable)} is called on the {@link DelegatingVisitor parent delegate}.
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/FilteredSubtreeVisitor.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
* Filtering {@link DelegatingVisitor visitor} applying a {@link Predicate filter}. Typically used as base class for
26
26
* {@link Visitor visitors} that wish to apply hierarchical processing based on a well-defined entry {@link Visitor
27
27
* segment}.
28
-
* <p/>
28
+
* <p>
29
29
* Filtering is a three-way process:
30
30
* <ol>
31
31
* <li>Ignores elements that do not match the filter {@link Predicate}.</li>
@@ -35,7 +35,8 @@
35
35
* children of the matched {@link Visitable} until {@link #leaveMatched(Visitable) leaving the matched}
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/TypedSubtreeVisitor.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@
26
26
* Type-filtering {@link DelegatingVisitor visitor} applying a {@link Class type filter} derived from the generic type
27
27
* parameter. Typically used as base class for {@link Visitor visitors} that wish to apply hierarchical processing based
28
28
* on a well-defined entry {@link Visitor segment}.
29
-
* <p/>
29
+
* <p>
30
30
* Filtering is a three-way process:
31
31
* <ol>
32
32
* <li>Ignores elements that do not match the filter {@link Predicate}.</li>
@@ -36,7 +36,8 @@
36
36
* children of the matched {@link Visitable} until {@link #leaveMatched(Visitable) leaving the matched}
0 commit comments