io.dinject.javalin.generator.MethodParam Maven / Gradle / Ivy
package io.dinject.javalin.generator;
import io.dinject.javalin.generator.openapi.MethodDocBuilder;
import javax.lang.model.element.VariableElement;
public class MethodParam {
private final ElementReader elementParam;
MethodParam(VariableElement param, String rawType, ProcessingContext ctx, ParamType defaultParamType, boolean formMarker) {
this.elementParam = new ElementReader(param, rawType, ctx, defaultParamType, formMarker);
}
void writeCtxGet(Append writer, PathSegments segments) {
elementParam.writeCtxGet(writer, segments);
}
void addImports(ControllerReader bean) {
elementParam.addImports(bean);
}
void writeValidate(Append writer) {
elementParam.writeValidate(writer);
}
void buildParamName(Append writer) {
elementParam.writeParamName(writer);
}
public void buildApiDocumentation(MethodDocBuilder methodDoc) {
elementParam.buildApiDocumentation(methodDoc);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy