Interface ParameterCodegenContext
public interface ParameterCodegenContext
Information related to parameter processing.
-
Method Summary
Modifier and TypeMethodDescriptionParameter annotations.Builder of the class that is being processed, to allow addition of methods and fields.Builder of the current method that should complete the parameter assignment.Type name of the class that defines the processed endpoint.Constant handler for the type being created.int
Method index (related to order of processing), to allow generation of unique names.Name of the method onendpointType()
that is being processed.Type of the parameter.int
Parameter index (related to order of processing), to allow generation of unique names.Name of the parameter that is being process inmethodName()
.Name of the server request parameter.Name of the server response parameter.
-
Method Details
-
fieldHandler
FieldHandler fieldHandler()Constant handler for the type being created.- Returns:
- constant handler
-
annotations
Set<Annotation> annotations()Parameter annotations.- Returns:
- annotations of the parameter
-
parameterType
TypeName parameterType()Type of the parameter.- Returns:
- parameter type
-
classBuilder
ClassModel.Builder classBuilder()Builder of the class that is being processed, to allow addition of methods and fields.- Returns:
- class model builder
-
contentBuilder
ContentBuilder<?> contentBuilder()Builder of the current method that should complete the parameter assignment.- Returns:
- content builder of the method body
-
serverRequestParamName
String serverRequestParamName()Name of the server request parameter.- Returns:
- name of server request
-
serverResponseParamName
String serverResponseParamName()Name of the server response parameter.- Returns:
- name of server response
-
endpointType
TypeName endpointType()Type name of the class that defines the processed endpoint.- Returns:
- class name
-
methodName
String methodName()Name of the method onendpointType()
that is being processed.- Returns:
- name of the method
-
paramName
String paramName()Name of the parameter that is being process inmethodName()
. This may be the real name (if annotation processing triggers this), or a placeholder if done on bytecode.- Returns:
- name of the parameter
-
methodIndex
int methodIndex()Method index (related to order of processing), to allow generation of unique names.- Returns:
- method index
- See Also:
-
paramIndex
int paramIndex()Parameter index (related to order of processing), to allow generation of unique names.- Returns:
- parameter index
- See Also:
-