public Collection<ExpTest> getAllExpTests() { List<ExpTest> expTests = new ArrayList<>(expTestLibrary.entries()); if (parent != null) { expTests.addAll(parent.getAllExpTests()); } return expTests; }
public ExpTest getExpTest(String name) { ExpTest t = expTestLibrary.getExpTest(name); if (t != null) { return t; } if (parent != null) { return parent.getExpTest(name); } return null; }
@SafeVarargs @SuppressWarnings("unchecked") public final void registerClasses(Class<? extends Importable>... classes) { for (Class<? extends Importable> c : classes) { if (ExpTest.class.isAssignableFrom(c)) { expTestLibrary.registerClasses((Class<? extends ExpTest>) c); } else if (Filter.class.isAssignableFrom(c)) { filterLibrary.registerClasses((Class<? extends Filter>) c); } else if (Tag.class.isAssignableFrom(c)) { tagLibrary.registerClasses((Class<? extends Tag>) c); } } }
public void registerExpTest(ExpTest t) { expTestLibrary.addExpTest(t); }