private static class DiscoveryConstraints.ConstraintReducer extends Object
Modifier and Type | Field and Description |
---|---|
private Class |
targetClass |
Constructor and Description |
---|
DiscoveryConstraints.ConstraintReducer(Class targetClass)
Creates reducer that operates on instances of the given constraint
class.
|
Modifier and Type | Method and Description |
---|---|
private Set |
getTargetInstances(Set set) |
(package private) Set |
reduce(InvocationConstraints constraints)
Returns the reduction of the given constraints into a single set of
alternatives for the target class.
|
private Set |
reduce(Set reduced,
Set constraints,
boolean required) |
(package private) Set |
reduce0(Set reduced,
Set toReduce)
Returns the reduction (intersection and compaction) of a new set of
alternative constraints, all instances of the target class, with a
previously reduced set (null if no other constraints have been
reduced yet).
|
private final Class targetClass
DiscoveryConstraints.ConstraintReducer(Class targetClass)
Set reduce(InvocationConstraints constraints) throws UnsupportedConstraintException
UnsupportedConstraintException
Set reduce0(Set reduced, Set toReduce)
private Set reduce(Set reduced, Set constraints, boolean required) throws UnsupportedConstraintException
UnsupportedConstraintException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.