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 Summary
Modifier and TypeMethodDescriptionstatic intDetermines the feature version of current Java.default booleanAllows checking directly onJavaFacetimplementation if supported.static booleanisSupported(JavaFacet javaFacet) Determines if theJavaFacetis supported.booleanisSupported(JavaFacetContext context) Indicates if the facet is supported.
-
Method Details
-
isSupported
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
Indicates if the facet is supported.- Parameters:
context-JavaFacetContext.- Returns:
trueif the facet is supported.- Throws:
Exception- If fails to determine if facet is supported.
-