com.github.paulosalonso.spel.builder.common.Method Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spel-builder Show documentation
Show all versions of spel-builder Show documentation
A facilitator for creating Spring expressions (SpEL).
The newest version!
package com.github.paulosalonso.spel.builder.common;
import java.util.List;
import java.util.stream.Collectors;
public abstract class Method extends Expression {
protected abstract List getParameters();
@Override
protected String getSuffix() {
return String.format("(%s)", getParameters().stream()
.map(Parameter::build)
.collect(Collectors.joining(", ")));
}
}