All Implemented Interfaces:
TypedValidator<Node>, Validator, BiConsumer<Node,ProblemReporter>
Direct Known Subclasses:
Java14PreviewValidator, Java15Validator

public class Java14Validator extends Java13Validator
This validator validates according to Java 14 syntax rules.
See Also:
  • Field Details

    • recordAsTypeIdentifierNotAllowed

      final Validator recordAsTypeIdentifierNotAllowed
      With the introduction of record classes, record is no longer permitted as an identifier.
      A type identifier is any identifier other than the character sequences var, yield, and record.

      Type identifiers are used in certain contexts involving the declaration or use of types. For example, the name of a class must be a TypeIdentifier, so it is illegal to declare a class named var, yield, or record (8.1).
      https://docs.oracle.com/javase/specs/jls/se15/preview/specs/records-jls.html#jls-3.8
    • recordDeclarationValidator

      final Validator recordDeclarationValidator
  • Constructor Details

    • Java14Validator

      public Java14Validator()