Interface JavaFacet
-
- All Known Implementing Classes:
CssParserJavaFacet
,GeneratedAnnotationJavaFacet
,JavaFxFacet
,ModulesJavaFacet
public interface JavaFacet
Facet 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 int
getJavaFeatureVersion()
Determines the feature version of current Java.default boolean
isSupported()
Allows checking directly onJavaFacet
implementation if supported.static boolean
isSupported(JavaFacet javaFacet)
Determines if theJavaFacet
is supported.boolean
isSupported(JavaFacetContext context)
Indicates if the facet is supported.
-
-
-
Method Detail
-
isSupported
static boolean isSupported(JavaFacet javaFacet)
Determines if theJavaFacet
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 onJavaFacet
implementation if supported.- Returns:
true
if theJavaFacet
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.
-
-