Qwylt

java.lang.module.spi.query
Class ModuleReference

java.lang.Object
  extended by java.lang.module.ModuleQuery
      extended by java.lang.module.spi.query.Exports
          extended by java.lang.module.spi.query.ModuleReference
All Implemented Interfaces:
java.lang.Iterable<ModuleQuery>, Matcher<ModuleArchive>

public class ModuleReference
extends Exports

An Exports that is constrained to ScopedName.Scope.MODULE.

Since:
Jan 22, 2009
Author:
Bryan Atsatt

Field Summary
 
Fields inherited from class java.lang.module.ModuleQuery
ANY, NONE
 
Constructor Summary
ModuleReference(java.lang.String moduleName, Matcher<Version> versionMatcher)
          Constructs an instance with the specified name and version.
ModuleReference(java.lang.String moduleName, Matcher<Version> versionMatcher, AttributeMatcher attributeMatcher)
          Constructs an instance with the specified name, version and attribute matchers.
 
Method Summary
 
Methods inherited from class java.lang.module.spi.query.Exports
getExportMatcher, getName, getScope, matches, toString
 
Methods inherited from class java.lang.module.ModuleQuery
addTo, addTo, and, and, any, asList, attributeEquals, attributeExists, exports, exportsPackage, exportsPackage, find, find, findIndexable, instanceOf, iterator, moduleNameAndVersionMatch, moduleNameEquals, not, not, or, or, versionMatches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleReference

public ModuleReference(java.lang.String moduleName,
                       Matcher<Version> versionMatcher)
Constructs an instance with the specified name and version.

Parameters:
moduleName - The module name.
versionMatcher - The version matcher.

ModuleReference

public ModuleReference(java.lang.String moduleName,
                       Matcher<Version> versionMatcher,
                       AttributeMatcher attributeMatcher)
Constructs an instance with the specified name, version and attribute matchers.

Parameters:
moduleName - The module name.
versionMatcher - The version matcher.
attributeMatcher - The attributeMatcher.

Qwylt

Send comments or questions to Bryan Atsatt