get array string url

This commit is contained in:
sentient0being
2025-05-17 19:40:41 +08:00
parent 5db797ec88
commit f575d2f941

View File

@@ -156,6 +156,10 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
/** Gets the "value" @RequestMapping annotation value, if present. */
string getValue() { result = requestMappingAnnotation.getStringValue("value") }
/** Gets the "value" @RequestMapping annotation array string value, if present. */
string getArrayValue() { result = requestMappingAnnotation.getAStringArrayValue("value") }
/** Gets the "method" @RequestMapping annotation value, if present. */
string getMethodValue() {
result = requestMappingAnnotation.getAnEnumConstantArrayValue("method").getName()