Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java')
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java32
1 files changed, 31 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java
index 2d9265228..d633d890c 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java
@@ -1473,6 +1473,23 @@ public abstract class ASTVisitor {
* Visits the given type-specific AST node.
* <p>
* The default implementation does nothing and return true.
+ * Subclasses may reimplement.
+ * </p>
+ *
+ * @param node the node to visit
+ * @return <code>true</code> if the children of this node should be
+ * visited, and <code>false</code> if the children of this node should
+ * be skipped
+ * @since 3.32
+ */
+ public boolean visit(RecordPattern node) {
+ return true;
+ }
+
+ /**
+ * Visits the given type-specific AST node.
+ * <p>
+ * The default implementation does nothing and return true.
* Subclasses may re-implement.
* </p>
*
@@ -2596,7 +2613,7 @@ public abstract class ASTVisitor {
* </p>
*
* @param node the node to visit
- * @since 3.31
+ * @since 3.32
*/
public void endVisit(JavaDocTextElement node) {
// default implementation: do nothing
@@ -2996,6 +3013,19 @@ public abstract class ASTVisitor {
// default implementation: do nothing
}
+ /**
+ * End of visit the given type-specific AST node.
+ * <p>
+ * The default implementation does nothing. Subclasses may re implement.
+ * </p>
+ *
+ * @param node the node to visit
+ * @since 3.31
+ * @noreference This method is not intended to be referenced by clients.
+ */
+ public void endVisit(RecordPattern node) {
+ // default implementation: do nothing
+ }
/**
* End of visit the given type-specific AST node.

Back to the top