Class HttpRequestContext.MethodParameter
java.lang.Object
io.clientcore.annotation.processor.models.HttpRequestContext.MethodParameter
- Enclosing class:
HttpRequestContext
Represents a method parameter.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodParameter(TypeMirror type, String shortTypeName, String name, VariableElement variableElement) Constructs a new MethodParameter. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name.Gets the short type name.Gets the type mirror.Gets theVariableElementthat resulted in thisHttpRequestContext.MethodParameterto be created.
-
Constructor Details
-
MethodParameter
public MethodParameter(TypeMirror type, String shortTypeName, String name, VariableElement variableElement) Constructs a new MethodParameter.- Parameters:
type- the type of the parameter.shortTypeName- the short type name of the parameter.name- the name of the parameter.variableElement- The element that created the MethodParameter
-
-
Method Details
-
getTypeMirror
Gets the type mirror.- Returns:
- the type mirror.
-
getShortTypeName
Gets the short type name.- Returns:
- the short type name.
-
getName
Gets the name.- Returns:
- the name.
-
getVariableElement
Gets theVariableElementthat resulted in thisHttpRequestContext.MethodParameterto be created.The
VariableElementcontains reflection information that may be useful when consuming theHttpRequestContext.MethodParameter.- Returns:
- The
VariableElementthat resulted in thisHttpRequestContext.MethodParameterto be created.
-