Top Description Fields Constructors Methods
org.codehaus.commons.compiler.java9.java.lang.module

public final Class ModuleFinder

extends Object
Class Inheritance
Imports
java.lang.reflect.Method, java.util.Collection, .HashSet, .Set, org.codehaus.commons.compiler.util.reflect.Classes, .Methods, .NoException

Pre-Java-9-compatible facade for Java 9's java.lang.module.ModuleFinder class.

Field Summary

Modifier and TypeField and Description
private static final Class<?>
private final Object
private static final Method
private static final Method

Constructor Summary

AccessConstructor and Description
private
ModuleFinder(Object delegate)

Method Summary

Modifier and TypeMethod and Description
public Set<ModuleReference>
public static ModuleFinder
private static <C extends Collection<ModuleReference>> C

Returns:

The result
wrapModuleReferences
(Collection<?> moduleReferences, C result)

Wraps each java.lang.module.ModuleReference in a ModuleReference and adds these to the result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLASSback to summary
private static final Class<?> CLASS
delegateback to summary
private final Object delegate
METHOD_findAllback to summary
private static final Method METHOD_findAll
METHOD_ofSystemback to summary
private static final Method METHOD_ofSystem

Constructor Detail

ModuleFinderback to summary
private ModuleFinder(Object delegate)

Method Detail

findAllback to summary
public Set<ModuleReference> findAll()
ofSystemback to summary
public static ModuleFinder ofSystem()
wrapModuleReferencesback to summary
private static <C extends Collection<ModuleReference>> C wrapModuleReferences(Collection<?> moduleReferences, C result)

Wraps each java.lang.module.ModuleReference in a ModuleReference and adds these to the result.

Returns:C

The result