Interface JavaFacet

All Known Implementing Classes:
ModulesJavaFacet

public interface JavaFacet
Facet that is checked to see if the current version of Java supports.
Author:
Daniel Sagenschneider
  • Method Details

    • isSupported

      static boolean isSupported(JavaFacet javaFacet)
      Determines if the JavaFacet is supported.
      Parameters:
      javaFacet - JavaFacet.
      Returns:
      true if the JavaFacet is supported.
    • getJavaFeatureVersion

      static int getJavaFeatureVersion()
      Determines the feature version of current Java.
      Returns:
      Feature version of current Java.
    • isSupported

      default boolean isSupported()
      Allows checking directly on JavaFacet implementation if supported.
      Returns:
      true if the JavaFacet is supported.
    • isSupported

      boolean isSupported(JavaFacetContext context) throws Exception
      Indicates if the facet is supported.
      Parameters:
      context - JavaFacetContext.
      Returns:
      true if the facet is supported.
      Throws:
      Exception - If fails to determine if facet is supported.