visitTypeVariable() — spring-boot Function Reference
Architecture documentation for the visitTypeVariable() function in TypeUtils.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1e2d6b22_07de_a169_5275_7992764c1659["visitTypeVariable()"] bfebb562_c065_f9a3_a70d_76157667e74c["resolveGeneric()"] 1e2d6b22_07de_a169_5275_7992764c1659 -->|calls| bfebb562_c065_f9a3_a70d_76157667e74c 4aa5da23_30ce_7fa1_8865_2fd33fabd1b0["hasCycle()"] 1e2d6b22_07de_a169_5275_7992764c1659 -->|calls| 4aa5da23_30ce_7fa1_8865_2fd33fabd1b0 8fd58d29_22bc_d340_df49_6209bcbc1639["defaultAction()"] 1e2d6b22_07de_a169_5275_7992764c1659 -->|calls| 8fd58d29_22bc_d340_df49_6209bcbc1639 style 1e2d6b22_07de_a169_5275_7992764c1659 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java lines 322–339
@Override
public String visitTypeVariable(TypeVariable typeVariable, TypeDescriptor descriptor) {
TypeMirror resolvedGeneric = descriptor.resolveGeneric(typeVariable);
if (resolvedGeneric != null) {
if (resolvedGeneric instanceof TypeVariable resolveTypeVariable) {
// Still unresolved, let's use the upper bound, checking first if
// a cycle may exist
if (!hasCycle(resolveTypeVariable)) {
return visit(resolveTypeVariable.getUpperBound(), descriptor);
}
}
else {
return visit(resolvedGeneric, descriptor);
}
}
// Fallback to simple representation of the upper bound
return defaultAction(typeVariable.getUpperBound(), descriptor);
}
Domain
Subdomains
Calls
- defaultAction()
- hasCycle()
- resolveGeneric()
Source
Frequently Asked Questions
What does visitTypeVariable() do?
visitTypeVariable() is a function in the spring-boot codebase.
What does visitTypeVariable() call?
visitTypeVariable() calls 3 function(s): defaultAction, hasCycle, resolveGeneric.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free