net.sourceforge.pmd.lang.java.ast.ASTUnnamedPattern Maven / Gradle / Ivy
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.ast;
/**
* An unnamed pattern, a Java 22 language feature.
*
*
*
* UnnamedPattern ::= "_"
*
*
*
* @see JEP 456: Unnamed Variables & Patterns (Java 22)
*/
public final class ASTUnnamedPattern extends AbstractJavaPattern {
ASTUnnamedPattern(int id) {
super(id);
}
@Override
protected R acceptVisitor(JavaVisitor super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}