public static enum JavaModule.Dispatcher.Disabled extends Enum<JavaModule.Dispatcher.Disabled> implements JavaModule.Dispatcher
java.lang.reflect.Module
API.JavaModule.Dispatcher.Disabled, JavaModule.Dispatcher.Enabled
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader(Object module)
Returns the module's class loader.
|
String |
getName(Object module)
Returns the module's name.
|
boolean |
isNamed(Object module)
Returns
true if the supplied module is named. |
JavaModule |
moduleOf(Class<?> type)
Extracts the Java
Module for the provided class or returns null if the current VM does not support modules. |
String |
toString() |
static JavaModule.Dispatcher.Disabled |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaModule.Dispatcher.Disabled[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaModule.Dispatcher.Disabled INSTANCE
public static JavaModule.Dispatcher.Disabled[] values()
for (JavaModule.Dispatcher.Disabled c : JavaModule.Dispatcher.Disabled.values()) System.out.println(c);
public static JavaModule.Dispatcher.Disabled valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic JavaModule moduleOf(Class<?> type)
JavaModule.Dispatcher
Module
for the provided class or returns null
if the current VM does not support modules.moduleOf
in interface JavaModule.Dispatcher
type
- The type for which to extract the module.Module
or null
if the current VM does not support modules.public ClassLoader getClassLoader(Object module)
JavaModule.Dispatcher
getClassLoader
in interface JavaModule.Dispatcher
module
- The java.lang.reflect.Module
public boolean isNamed(Object module)
JavaModule.Dispatcher
true
if the supplied module is named.isNamed
in interface JavaModule.Dispatcher
module
- The java.lang.reflect.Module
to check for the existence of a name.true
if the supplied module is named.public String getName(Object module)
JavaModule.Dispatcher
getName
in interface JavaModule.Dispatcher
module
- The java.lang.reflect.Module
to check for its name.public String toString()
toString
in class Enum<JavaModule.Dispatcher.Disabled>
Copyright © 2014–2016. All rights reserved.