Search in sources :

Example 11 with Parameter

use of org.glassfish.hk2.classmodel.reflect.Parameter in project Payara by payara.

the class OpenApiWalker method processAnnotation.

@SuppressWarnings("unchecked")
public final void processAnnotation(ClassModel annotatedClass, ApiVisitor visitor) {
    AnnotationInfo annotations = context.getAnnotationInfo(annotatedClass);
    processAnnotation((E) annotatedClass, annotations, visitor, new OpenApiContext(context, annotatedClass));
    for (final MethodModel method : annotatedClass.getMethods()) {
        processAnnotation((E) method, annotations, visitor, new OpenApiContext(context, method));
    }
    for (final FieldModel field : annotatedClass.getFields()) {
        processAnnotation((E) field, annotations, visitor, new OpenApiContext(context, field));
    }
    for (final MethodModel method : annotatedClass.getMethods()) {
        for (org.glassfish.hk2.classmodel.reflect.Parameter parameter : method.getParameters()) {
            processAnnotation((E) parameter, annotations, visitor, new OpenApiContext(context, method));
        }
    }
}
Also used : MethodModel(org.glassfish.hk2.classmodel.reflect.MethodModel) FieldModel(org.glassfish.hk2.classmodel.reflect.FieldModel)

Aggregations

AnnotationModel (org.glassfish.hk2.classmodel.reflect.AnnotationModel)5 FieldModel (org.glassfish.hk2.classmodel.reflect.FieldModel)5 SchemaImpl (fish.payara.microprofile.openapi.impl.model.media.SchemaImpl)4 Parameter (org.eclipse.microprofile.openapi.models.parameters.Parameter)4 MethodModel (org.glassfish.hk2.classmodel.reflect.MethodModel)4 ContentImpl (fish.payara.microprofile.openapi.impl.model.media.ContentImpl)2 ParameterImpl (fish.payara.microprofile.openapi.impl.model.parameters.ParameterImpl)2 IOException (java.io.IOException)2 Method (java.lang.reflect.Method)2 Collection (java.util.Collection)2 Operation (org.eclipse.microprofile.openapi.models.Operation)2 AnnotatedElement (org.glassfish.hk2.classmodel.reflect.AnnotatedElement)2 ClassModel (org.glassfish.hk2.classmodel.reflect.ClassModel)2 ExtensibleType (org.glassfish.hk2.classmodel.reflect.ExtensibleType)2 GraphHopper (com.graphhopper.GraphHopper)1 GraphHopperConfig (com.graphhopper.GraphHopperConfig)1 GraphHopperHealthCheck (com.graphhopper.http.health.GraphHopperHealthCheck)1 JTSTriangulator (com.graphhopper.isochrone.algorithm.JTSTriangulator)1 Triangulator (com.graphhopper.isochrone.algorithm.Triangulator)1 ProfileResolver (com.graphhopper.routing.ProfileResolver)1