net.jbock.convert.matching.ValidMatch 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.matching;
import com.squareup.javapoet.CodeBlock;
import net.jbock.annotated.AnnotatedMethod;
import net.jbock.model.Multiplicity;
import javax.lang.model.type.TypeMirror;
import java.util.Optional;
public final class ValidMatch {
private final Match match;
ValidMatch(Match match) {
this.match = match;
}
public TypeMirror baseType() {
return match.baseType();
}
public Multiplicity multiplicity() {
return match.multiplicity();
}
public M sourceMethod() {
return match.sourceMethod();
}
public Optional extractExpr() {
return match.extractExpr();
}
}