Class ClassFileVersionMatcher<T extends TypeDescription>

Type Parameters:
T - The exact type of the type description that is matched.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class ClassFileVersionMatcher<T extends TypeDescription> extends ElementMatcher.Junction.ForNonNullValues<T>
A matcher to consider if a class file version reaches a given boundary.
  • Field Details

    • classFileVersion

      private final ClassFileVersion classFileVersion
      The targeted class file version.
    • atMost

      private final boolean atMost
      true if the targeted class file version should be at most of the supplied version.
  • Constructor Details

    • ClassFileVersionMatcher

      public ClassFileVersionMatcher(ClassFileVersion classFileVersion, boolean atMost)
      Creates a class file version matcher.
      Parameters:
      classFileVersion - The targeted class file version.
      atMost - true if the targeted class file version should be at most of the supplied version.
  • Method Details