net.jbock.convert.match.Matcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbock-compiler Show documentation
Show all versions of jbock-compiler Show documentation
jbock annotation processor
package net.jbock.convert.match;
import io.jbock.simple.Inject;
import io.jbock.simple.Named;
import net.jbock.annotated.Item;
import net.jbock.common.TypeTool;
import java.util.Optional;
public abstract class Matcher {
abstract
Optional> tryMatch(
M parameter);
@Inject
@Named("list")
public static Matcher listMatcher(TypeTool tool) {
return new ListMatcher(tool);
}
@Inject
@Named("optional")
public static Matcher optionalMatcher(TypeTool tool) {
return new OptionalMatcher(tool);
}
}