Qwylt

java.lang.module.spi.query
Class Unary

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

public abstract class Unary
extends ModuleQuery

An abstract ModuleQuery that modifies the result of another instance.

Since:
Dec 12, 2008
Author:
Bryan Atsatt

Field Summary
 
Fields inherited from class java.lang.module.ModuleQuery
ANY, NONE
 
Constructor Summary
protected Unary(ModuleQuery child)
          Constructor.
 
Method Summary
protected  java.util.List<ModuleQuery> addTo(java.util.List<ModuleQuery> list)
          Add this ModuleQuery and any children to the specified list.
protected
<T extends ModuleQuery>
Indexable<T>
find(Indexable<T> indexable)
          Match this ModuleQuery and any children against the specified Indexable, stopping at the first match.
 ModuleQuery getChild()
          Returns the child query.
 
Methods inherited from class java.lang.module.ModuleQuery
addTo, and, and, any, asList, attributeEquals, attributeExists, exports, exportsPackage, exportsPackage, find, findIndexable, instanceOf, iterator, matches, moduleNameAndVersionMatch, moduleNameEquals, not, not, or, or, versionMatches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unary

protected Unary(ModuleQuery child)
Constructor.

Parameters:
child - The child.
Method Detail

getChild

public ModuleQuery getChild()
Returns the child query.

Returns:
The child.

addTo

protected java.util.List<ModuleQuery> addTo(java.util.List<ModuleQuery> list)
Add this ModuleQuery and any children to the specified list.

Overrides:
addTo in class ModuleQuery
Parameters:
list - The list to add to.
Returns:
The list.

find

protected <T extends ModuleQuery> Indexable<T> find(Indexable<T> indexable)
Match this ModuleQuery and any children against the specified Indexable, stopping at the first match.

Overrides:
find in class ModuleQuery
Parameters:
indexable - The indexable to match.
Returns:
The indexable.

Qwylt

Send comments or questions to Bryan Atsatt