Package rife.bld.extension.kotlin
Class JvmOptions
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,List<String>
,RandomAccess
Java Virtual Machine options.
- Since:
- 1.1.0
- Author:
- Erik C. Thauvin
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Illegal native access modes. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Keyword to enable native access for all code on the class path.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenableNativeAccess
(String... modules) Modules that are permitted to perform restricted native operations.enableNativeAccess
(Collection<String> modules) Modules that are permitted to perform restricted native operations.Controls what action the Java runtime takes when native access is not enabled for a module.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
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
-
enableNativeAccess
Modules that are permitted to perform restricted native operations. The module name can also beALL_UNNAMED
.- Parameters:
modules
- the module names- Returns:
- this list of options
-
enableNativeAccess
Modules that are permitted to perform restricted native operations. The module name can also beALL_UNNAMED
.- Parameters:
modules
- the module names- Returns:
- this list of options
-
illegalNativeAccess
Controls what action the Java runtime takes when native access is not enabled for a module.- Parameters:
access
- the access mode- Returns:
- this list of options
-