AbstractBindingsVisitor(Collection<EventBinding.Source<?>> bindings, boolean visitForEachBinding) { this.bindings = bindings; this.visitForEachBinding = visitForEachBinding; Set<Class<?>> compoundTags = null; // null means all provided tags by the language for (EventBinding.Source<?> sourceBinding : bindings) { Set<Class<?>> limitedTags = sourceBinding.getLimitedTags(); if (limitedTags == null) { compoundTags = null; break; } else { if (compoundTags == null) { compoundTags = new HashSet<>(); } compoundTags.addAll(limitedTags); } } this.materializeLimitedTags = compoundTags != null ? Collections.unmodifiableSet(compoundTags) : null; }
AbstractBindingsVisitor(Collection<EventBinding.Source<?>> bindings, boolean visitForEachBinding) { this.bindings = bindings; this.visitForEachBinding = visitForEachBinding; Set<Class<?>> compoundTags = null; // null means all provided tags by the language for (EventBinding.Source<?> sourceBinding : bindings) { Set<Class<?>> limitedTags = sourceBinding.getLimitedTags(); if (limitedTags == null) { compoundTags = null; break; } else { if (compoundTags == null) { compoundTags = new HashSet<>(); } compoundTags.addAll(limitedTags); } } this.materializeLimitedTags = compoundTags != null ? Collections.unmodifiableSet(compoundTags) : null; }
AbstractBindingVisitor(EventBinding.Source<?> binding) { this.binding = binding; Set<Class<?>> limitedTags = binding.getLimitedTags(); this.materializeLimitedTags = limitedTags != null ? Collections.unmodifiableSet(limitedTags) : null; }
AbstractBindingVisitor(EventBinding.Source<?> binding) { this.binding = binding; Set<Class<?>> limitedTags = binding.getLimitedTags(); this.materializeLimitedTags = limitedTags != null ? Collections.unmodifiableSet(limitedTags) : null; }