net.sourceforge.pmd.lang.java.ast.ASTPattern Maven / Gradle / Ivy
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.ast;
/**
* A pattern for pattern matching constructs like {@link ASTInfixExpression InstanceOfExpression}
* or within a {@link ASTSwitchLabel}). This is a JDK 16 feature.
*
* The {@link ASTRecordPattern} is a JDK 21 feature.
*
* This interface is implemented by all forms of patterns.
*
*
*
* Pattern ::= {@linkplain ASTTypePattern TypePattern}
* | {@linkplain ASTRecordPattern RecordPattern}
* | {@linkplain ASTUnnamedPattern UnnamedPattern}
*
*
*
* @see JEP 394: Pattern Matching for instanceof (Java 16)
* @see JEP 440: Record Patterns (Java 21)
*/
public interface ASTPattern extends TypeNode {
}