Lines Matching defs:linkers
98 * seen class is encountered, all linkers are queried sequentially on their
99 * {@link TypeBasedGuardingDynamicLinker#canLinkType(Class)} method. The linkers
101 * type is encountered, the linking is delegated to those linkers only, speeding
109 private final TypeBasedGuardingDynamicLinker[] linkers;
113 ClassToLinker(final TypeBasedGuardingDynamicLinker[] linkers) {
114 this.linkers = linkers;
115 singletonLinkers = new List[linkers.length];
116 for(int i = 0; i < linkers.length; ++i) {
117 singletonLinkers[i] = Collections.singletonList(linkers[i]);
125 for(int i = 0; i < linkers.length; ++i) {
126 final TypeBasedGuardingDynamicLinker linker = linkers[i];
151 * @param linkers the component linkers
152 * @throws NullPointerException if {@code linkers} or any of its elements
155 public CompositeTypeBasedGuardingDynamicLinker(final Iterable<? extends TypeBasedGuardingDynamicLinker> linkers) {
157 for(final TypeBasedGuardingDynamicLinker linker: linkers) {
164 * Returns true if at least one of the composite linkers returns true from
167 * @return true true if at least one of the composite linkers returns true
193 * Optimizes a list of type-based linkers. If a group of adjacent linkers in
198 * @param linkers the list of linkers to optimize
200 * @throws NullPointerException if {@code linkers} or any of its elements
203 public static List<GuardingDynamicLinker> optimize(final Iterable<? extends GuardingDynamicLinker> linkers) {
206 for(final GuardingDynamicLinker linker: linkers) {