private static <T, L> OrdinalSetMapping<L> makeDomain(Map<T, Collection<L>> gen) { MutableMapping<L> result = MutableMapping.make(); if (gen == null) { throw new IllegalArgumentException("null gen"); } for (Collection<L> c : gen.values()) { for (L p : c) { result.add(p); } } return result; }
private static <T, L> OrdinalSetMapping<L> makeDomain(Map<T, Collection<L>> gen) { MutableMapping<L> result = MutableMapping.make(); if (gen == null) { throw new IllegalArgumentException("null gen"); } for (Collection<L> c : gen.values()) { for (L p : c) { result.add(p); } } return result; }
public static <T> OffsetOrdinalSetMapping<T> make(int offset) { MutableMapping<T> m = MutableMapping.make(); return new OffsetOrdinalSetMapping<>(m, offset); }
public static <T> OffsetOrdinalSetMapping<T> make(int offset) { MutableMapping<T> m = MutableMapping.make(); return new OffsetOrdinalSetMapping<>(m, offset); }
public static <T> OffsetOrdinalSetMapping<T> make(int offset) { MutableMapping<T> m = MutableMapping.make(); return new OffsetOrdinalSetMapping<>(m, offset); }
private OrdinalSetMapping<PointerKey> getPointerKeys() { MutableMapping<PointerKey> result = MutableMapping.make(); for (PointerKey p : getPointerAnalysis().getPointerKeys()) { result.add(p); } return result; }
private OrdinalSetMapping<PointerKey> getPointerKeys() { MutableMapping<PointerKey> result = MutableMapping.make(); for (PointerKey p : getPointerAnalysis().getPointerKeys()) { result.add(p); } return result; }
/** * @param c {@code Collection<IClass>} */ private static MutableMapping<InstanceKey> makeInstanceKeys(Collection<IClass> c) { if (c == null) { throw new IllegalArgumentException("null c"); } MutableMapping<InstanceKey> result = MutableMapping.make(); for (IClass klass : c) { if (!klass.isAbstract() && !klass.isInterface()) { result.add(new ConcreteTypeKey(klass)); } } return result; }
/** * @param c {@code Collection<IClass>} */ private static MutableMapping<InstanceKey> makeInstanceKeys(Collection<IClass> c) { if (c == null) { throw new IllegalArgumentException("null c"); } MutableMapping<InstanceKey> result = MutableMapping.make(); for (IClass klass : c) { if (!klass.isAbstract() && !klass.isInterface()) { result.add(new ConcreteTypeKey(klass)); } } return result; }