Package rife.bld.extension.kotlin
Class JvmOptions
java.lang.Object
rife.bld.extension.kotlin.JvmOptions
Java Virtual Machine options.
- Since:
- 1.1.0
- Author:
- Erik C. Thauvin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIllegal native access modes. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKeyword to enable native access for all code on the class path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the formatted arguments.Returns the action the Java runtime takes when native access is not enabled for a module.Deprecated.Removed in JDK 23Returns the modules that are permitted to perform restricted native operations.nativeAccessModules(String... modules) Modules that are permitted to perform restricted native operations.nativeAccessModules(Collection<String> modules) Modules that are permitted to perform restricted native operations.
-
Field Details
-
ALL_UNNAMED
Keyword to enable native access for all code on the class path.- See Also:
-
-
Constructor Details
-
JvmOptions
public JvmOptions()
-
-
Method Details
-
args
Returns the formatted arguments.- Returns:
- the arguments
-
illegalNativeAccess
Returns the action the Java runtime takes when native access is not enabled for a module.- Returns:
- the access mode or
nullif unspecified - Since:
- 1.2
-
illegalNativeAccess
@NonNull @Deprecated(since="23") public JvmOptions illegalNativeAccess(@NonNull JvmOptions.NativeAccess access) Deprecated.Removed in JDK 23Controls what action the Java runtime takes when native access is not enabled for a module.Note: This flag was introduced in JDK 17 and removed in JDK 23.
- Parameters:
access- the access mode- Returns:
- this list of options
- Throws:
NullPointerException- if access isnull
-
nativeAccessModules
Modules that are permitted to perform restricted native operations.The module name can also be
ALL_UNNAMED.- Parameters:
modules- the module names- Returns:
- this list of options
- Throws:
NullPointerException- ifmodulesisnullIllegalArgumentException- ifmodulesis empty, or containsnullor empty elements- Since:
- 1.2
-
nativeAccessModules
Modules that are permitted to perform restricted native operations.The module name can also be
ALL_UNNAMED.- Parameters:
modules- the module names- Returns:
- this list of options
- Throws:
NullPointerException- ifmodulesisnullIllegalArgumentException- ifmodulesis empty, or containsnullor empty elements- Since:
- 1.2
-
nativeAccessModules
Returns the modules that are permitted to perform restricted native operations.- Returns:
- the modules list
- Since:
- 1.2
-