Package net.binis.codegen.enrich.handler
Class OpenApiElementEnricherHandler
java.lang.Object
net.binis.codegen.enrich.handler.base.BaseEnricher
net.binis.codegen.enrich.handler.OpenApiElementEnricherHandler
- All Implemented Interfaces:
net.binis.codegen.enrich.Enricher,net.binis.codegen.enrich.OpenApiEnricher,PrototypeEnricher
public class OpenApiElementEnricherHandler
extends BaseEnricher
implements net.binis.codegen.enrich.OpenApiEnricher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanprotected static final Class<? extends Annotation>Fields inherited from class net.binis.codegen.enrich.handler.base.BaseEnricher
lookup, parser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckForDefaultValue(CGMethodDeclaration method, CGAnnotation ann) protected voidcheckForLength(CGMethodDeclaration method, CGAnnotation ann) protected voidcheckForRange(CGMethodDeclaration method, CGAnnotation ann) protected voidcheckForRequired(CGMethodDeclaration method, CGAnnotation ann) voidenrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) protected voidenrichMethod(CGMethodDeclaration method) voidfinalizeEnrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) protected booleangenerate(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) intorder()protected Stringstrip(CGValueExpression arg) protected intMethods inherited from class net.binis.codegen.enrich.handler.base.BaseEnricher
dependencies, enrichElement, error, error, init, note, note, postProcess, safeEnrichElement, setup, warn, warn
-
Field Details
-
OPEN_API_CLASS
-
IS_OPENAPI_AVAILABLE
protected static final boolean IS_OPENAPI_AVAILABLE
-
-
Constructor Details
-
OpenApiElementEnricherHandler
public OpenApiElementEnricherHandler()
-
-
Method Details
-
enrich
public void enrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) - Specified by:
enrichin interfacePrototypeEnricher- Overrides:
enrichin classBaseEnricher
-
order
public int order()- Specified by:
orderin interfacePrototypeEnricher
-
finalizeEnrich
public void finalizeEnrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) - Specified by:
finalizeEnrichin interfacePrototypeEnricher- Overrides:
finalizeEnrichin classBaseEnricher
-
enrichMethod
-
checkForRequired
-
checkForDefaultValue
-
checkForRange
-
checkForLength
-
generate
protected boolean generate(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) -
strip
-
stripInt
-
strip
-