All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.java.ast.ASTPattern Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
/*
 * 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 { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy