Enum JavaxPackage
- All Implemented Interfaces:
Serializable, Comparable<JavaxPackage>, java.lang.constant.Constable, Feature<JavaxPackage>
Types in the javax package, if available. Linked to the
SourceLevel by default in tests.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final QualifiedNameprivate final Stringstatic final FeatureType<JavaxPackage> Constant to pass toSourceBuilder.feature(FeatureType)to get the current status ofJavaxPackage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParameterized type forjava.util.function.Consumer<T>, if available.private static booleanhasType(Elements elements, QualifiedName type) private <T> Optional<T> ifAvailable(T value) toString()static JavaxPackageReturns the enum constant of this type with the specified name.static JavaxPackage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
-
UNAVAILABLE
-
-
Field Details
-
JAVAX
Constant to pass toSourceBuilder.feature(FeatureType)to get the current status ofJavaxPackage. -
GENERATED
-
humanReadableFormat
-
-
Constructor Details
-
JavaxPackage
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
generated
Parameterized type forjava.util.function.Consumer<T>, if available. -
toString
- Overrides:
toStringin classEnum<JavaxPackage>
-
hasType
-
ifAvailable
-