We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SpringProperty::getSetterMethod
1 parent 6693c5b commit 2787c2fCopy full SHA for 2787c2f
1 file changed
java/ql/src/semmle/code/java/frameworks/spring/SpringProperty.qll
@@ -69,11 +69,19 @@ class SpringProperty extends SpringXMLElement {
69
)
70
}
71
72
+ /**
73
+ * Gets a setter method declared on this property's enclosing bean that sets this property.
74
+ */
75
Method getSetterMethod() {
76
this.getEnclosingBean().getClass().hasMethod(result, _) and
77
result.getName().toLowerCase() = "set" + this.getPropertyName().toLowerCase()
78
79
80
81
+ * Gets a setter method declared on bean `context` that sets this property.
82
+ *
83
+ * This property must be declared on a bean that is an ancestor of `context`.
84
85
Method getSetterMethod(SpringBean context) {
86
this.getEnclosingBean() = context.getBeanParent*() and
87
context.getClass().hasMethod(result, _) and
0 commit comments