Qwylt

java.lang.module.spi.query
Class Exports

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

public class Exports
extends ModuleQuery

A ModuleQuery that tests if an archive provides a specified export.

Since:
Jan 2, 2010
Author:
Bryan Atsatt. Copyright (c) 2010 Oracle.

Field Summary
 
Fields inherited from class java.lang.module.ModuleQuery
ANY, NONE
 
Constructor Summary
Exports(ExportMatcher matcher)
          Constructor.
 
Method Summary
 ExportMatcher getExportMatcher()
          Returns the export matcher..
 java.lang.String getName()
          Returns the export name.
 ScopedName.Scope getScope()
          Returns the scope.
 boolean matches(ModuleArchive target)
          Tests if the specified target matches this instance.
 java.lang.String toString()
          Returns a string representation of this instance.
 
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

Exports

public Exports(ExportMatcher matcher)
Constructor.

Parameters:
matcher - The matcher.
Method Detail

getName

public java.lang.String getName()
Returns the export name.

Returns:
The name.

getScope

public ScopedName.Scope getScope()
Returns the scope.

Returns:
The scope.

getExportMatcher

public ExportMatcher getExportMatcher()
Returns the export matcher..

Returns:
The matcher.

matches

public boolean matches(ModuleArchive target)
Tests if the specified target matches this instance.

Specified by:
matches in interface Matcher<ModuleArchive>
Specified by:
matches in class ModuleQuery
Parameters:
target - The target instance.
Returns:
true if the specified target matches this instance; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of this instance.

Overrides:
toString in class java.lang.Object
Returns:
The string.

Qwylt

Send comments or questions to Bryan Atsatt