Merge pull request #15923 from hvitved/shared-xml-impl

Properly shared `XML.qll` implementation
This commit is contained in:
Tom Hvitved
2024-04-03 11:39:50 +02:00
committed by GitHub
18 changed files with 645 additions and 1423 deletions

View File

@@ -19,7 +19,8 @@ class SpringBean extends SpringXmlElement {
not this.getNamespace().getUri() = "http://camel.apache.org/schema/spring"
}
override string toString() { result = this.getBeanIdentifier() }
/** Gets a printable representation of this XML element. */
string toString() { result = this.getBeanIdentifier() }
/**
* Holds if this element is a top-level bean definition.

View File

@@ -9,7 +9,8 @@ import semmle.code.java.frameworks.spring.SpringValue
class SpringProperty extends SpringXmlElement {
SpringProperty() { this.getName() = "property" }
override string toString() { result = this.getPropertyName() }
/** Gets a printable representation of this XML element. */
string toString() { result = this.getPropertyName() }
/** Gets the value of the `name` attribute. */
string getPropertyName() { result = this.getAttributeValue("name") }