Interface JavaFacet
-
- All Known Implementing Classes:
CssParserJavaFacet,GeneratedAnnotationJavaFacet,JavaFxFacet,ModulesJavaFacet
public interface JavaFacetFacet that is checked to see if the current version of Java supports.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static intgetJavaFeatureVersion()Determines the feature version of current Java.default booleanisSupported()Allows checking directly onJavaFacetimplementation if supported.static booleanisSupported(JavaFacet javaFacet)Determines if theJavaFacetis supported.booleanisSupported(JavaFacetContext context)Indicates if the facet is supported.
-
-
-
Method Detail
-
isSupported
static boolean isSupported(JavaFacet javaFacet)
Determines if theJavaFacetis 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 onJavaFacetimplementation if supported.- Returns:
trueif theJavaFacetis supported.
-
isSupported
boolean isSupported(JavaFacetContext context) throws java.lang.Exception
Indicates if the facet is supported.- Parameters:
context-JavaFacetContext.- Returns:
trueif the facet is supported.- Throws:
java.lang.Exception- If fails to determine if facet is supported.
-
-