@Override public List<Transposition<String>> getTranspositions() { return wrapped.getTranspositions(); }
@Override public List<Transposition<String>> getTranspositions() { return wrapped.getTranspositions(); }
@Override public boolean submit(Rewrite event, EvaluationContext context, Parameter<?> param, String value) { Assert.notNull(event, "Rewrite event must not be null."); Assert.notNull(context, "EvaluationContext must not be null."); Assert.notNull(param, "Parameter must not be null."); boolean result = false; boolean supportsSubmission = supportsSubmission(event, context, param, value); if (!supportsSubmission) { result = true; } else if (supportsSubmission && isValid(event, context, param, value)) { // FIXME Transposition processing will break multi-conditional matching for (Transposition<String> transposition : param.getTranspositions()) { value = transposition.transpose(event, context, value); } map.put(param, value); result = true; } return result; }
@Override public boolean submit(Rewrite event, EvaluationContext context, Parameter<?> param, String value) { Assert.notNull(event, "Rewrite event must not be null."); Assert.notNull(context, "EvaluationContext must not be null."); Assert.notNull(param, "Parameter must not be null."); boolean result = false; boolean supportsSubmission = supportsSubmission(event, context, param, value); if (!supportsSubmission) { result = true; } else if (supportsSubmission && isValid(event, context, param, value)) { // FIXME Transposition processing will break multi-conditional matching for (Transposition<String> transposition : param.getTranspositions()) { value = transposition.transpose(event, context, value); } map.put(param, value); result = true; } return result; }
for (Transposition<String> transposition : parameter.getTranspositions()) if (!parentParam.getTranspositions().contains(transposition)) throwRedefinitionError(rule, name);
for (Transposition<?> transposition : parameter.getTranspositions()) { if (!parentParam.getTranspositions().contains(transposition)) throwRedefinitionError(rule, name);
for (Transposition<?> transposition : parameter.getTranspositions()) { if (!parentParam.getTranspositions().contains(transposition)) throwRedefinitionError(rule, name);
for (Transposition<String> transposition : parameter.getTranspositions()) if (!parentParam.getTranspositions().contains(transposition)) throwRedefinitionError(rule, name);