@Override public void setParameterStore(ParameterStore store) { if (operation instanceof Parameterized) ((Parameterized) operation).setParameterStore(store); } }
@Override public void setParameterStore(ParameterStore store) { if (condition instanceof Parameterized) ((Parameterized) condition).setParameterStore(store); if (operation instanceof Parameterized) ((Parameterized) operation).setParameterStore(store); if (wrapped instanceof Parameterized) ((Parameterized) wrapped).setParameterStore(store); }
@Override public void call(Parameterized parameterized) { parameterized.setParameterStore(store); } });
@Override public void call(Parameterized parameterized) { parameterized.setParameterStore(store); } });
@Override public void setParameterStore(ParameterStore store) { if (condition instanceof Parameterized) ((Parameterized) condition).setParameterStore(store); if (operation instanceof Parameterized) ((Parameterized) operation).setParameterStore(store); if (wrapped instanceof Parameterized) ((Parameterized) wrapped).setParameterStore(store); }
@Override public void setParameterStore(ParameterStore store) { if (rule instanceof Parameterized) ((Parameterized) rule).setParameterStore(store); }
@Override public void setParameterStore(ParameterStore store) { if (operation instanceof Parameterized) ((Parameterized) operation).setParameterStore(store); } }
@Override public void call(Parameterized parameterized) { parameterized.setParameterStore(store); } });
@Override public void setParameterStore(ParameterStore store) { if (rule instanceof Parameterized) ((Parameterized) rule).setParameterStore(store); }
private void setParameterStore(ParameterStore store, Condition condition) { if (condition instanceof Parameterized) ((Parameterized) condition).setParameterStore(store); if (condition instanceof CompositeCondition) ((CompositeCondition)condition).getConditions().forEach(innerCondition -> setParameterStore(store, innerCondition)); }
private void setParameterStore(ParameterStore store, Condition condition) { if (condition instanceof Parameterized) ((Parameterized) condition).setParameterStore(store); if (condition instanceof CompositeCondition) ((CompositeCondition)condition).getConditions().forEach(innerCondition -> setParameterStore(store, innerCondition)); }
/** * Initialize the {@link Parameterized} instance with the given {@link ParameterStore}, also record required * parameter names in the {@link ParameterStore} and initialize with a new {@link Parameter} instance. */ public static void initialize(ParameterStore store, Object parameterized) { if (parameterized instanceof Parameterized) { Set<String> names = ((Parameterized) parameterized).getRequiredParameterNames(); for (String name : names) { store.get(name, new DefaultParameter(name)); } ((Parameterized) parameterized).setParameterStore(store); } }
/** * Initialize the {@link Parameterized} instance with the given {@link ParameterStore}, also record required * parameter names in the {@link ParameterStore} and initialize with a new {@link Parameter} instance. */ public static void initialize(ParameterStore store, Object parameterized) { if (parameterized instanceof Parameterized) { Set<String> names = ((Parameterized) parameterized).getRequiredParameterNames(); for (String name : names) { store.get(name, new DefaultParameter(name)); } ((Parameterized) parameterized).setParameterStore(store); } }
@Override public void call(Parameterized parameterized) { Set<String> names = parameterized.getRequiredParameterNames(); ParameterStore store = ((ParameterizedRule) rule).getParameterStore(); if (names != null) for (String name : names) { Parameter<?> parameter = store.get(name, new DefaultParameter(name)); if (parameter instanceof ConfigurableParameter<?>) ((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); } parameterized.setParameterStore(store); } };
@Override public void call(Parameterized parameterized) { Set<String> names = parameterized.getRequiredParameterNames(); ParameterStore store = ((ParameterizedRule) rule).getParameterStore(); if (names != null) for (String name : names) { Parameter<?> parameter = store.get(name, new DefaultParameter(name)); if (parameter instanceof ConfigurableParameter<?>) ((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); } parameterized.setParameterStore(store); } };
@Override public void call(Parameterized parameterized) { Set<String> names = parameterized.getRequiredParameterNames(); ParameterStore store = ((ParameterizedRule) rule).getParameterStore(); if (names != null) for (String name : names) { Parameter<?> parameter = store.get(name, new DefaultParameter(name)); if (parameter instanceof ConfigurableParameter<?>) ((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); } parameterized.setParameterStore(store); } };
@Override public void call(Parameterized parameterized) { Set<String> names = parameterized.getRequiredParameterNames(); ParameterStore store = ((ParameterizedRule) rule).getParameterStore(); if (names != null) for (String name : names) { Parameter<?> parameter = store.get(name, new DefaultParameter(name)); if (parameter instanceof ConfigurableParameter<?>) ((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); } parameterized.setParameterStore(store); } };
((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); parameterized.setParameterStore(store);
((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); parameterized.setParameterStore(store);
((ConfigurableParameter<?>) parameter).bindsTo(Evaluation.property(name)); parameterized.setParameterStore(store);