Interface JavaFacet

    • Method Detail

      • 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 java.lang.Exception
        Indicates if the facet is supported.
        Parameters:
        context - JavaFacetContext.
        Returns:
        true if the facet is supported.
        Throws:
        java.lang.Exception - If fails to determine if facet is supported.