Qwylt

java.lang.module.spi.query
Class Not

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

public class Not
extends Unary

A ModuleQuery the inverts the result of another.

Since:
Dec 12, 2008
Author:
Bryan Atsatt

Field Summary
 
Fields inherited from class java.lang.module.ModuleQuery
ANY, NONE
 
Constructor Summary
Not(ModuleQuery child)
          Constructor.
 
Method Summary
static ModuleQuery create(ModuleQuery query)
          Returns a ModuleQuery that inverts another query.
 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.spi.query.Unary
addTo, find, getChild
 
Methods inherited from class java.lang.module.ModuleQuery
addTo, and, and, any, asList, attributeEquals, attributeExists, exports, exportsPackage, exportsPackage, 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

Not

public Not(ModuleQuery child)
Constructor.

Parameters:
child - The child.
Method Detail

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.

create

public static ModuleQuery create(ModuleQuery query)
Returns a ModuleQuery that inverts another query.

Parameters:
query - The query.
Returns:
The ModuleQuery object.

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