Class Dependency
An XML element named “dependency”, as found in Maven POM XML files.
Access to child XML elements named “groupId” and “artifactId” is provided via inherited methods from the super-class.
Import path
import semmle.code.xml.MavenPom
Direct supertypes
Indirect supertypes
Known direct subtypes
Predicates
getJar |
Gets the jar file that Maven likely resolved this dependency to (if any). See |
getPom |
Gets an XML element with the same Maven short coordinate (of the form |
getScope |
Gets the scope of this dependency. If the |
getVersionString |
Gets a string representing the version, or an empty string if no |
Inherited predicates
allCharactersString |
Gets the result of appending all the character sequences of this XML parent from left to right, separated by a space. |
from XmlParent |
getACharactersSet |
Gets a character sequence that is a child of this XML parent. |
from XmlParent |
getAChild |
Gets a child element of this XML parent. |
from XmlParent |
getAChild |
Gets a child element of this XML parent with the given |
from XmlParent |
getAComment |
Gets a comment that is a child of this XML parent. |
from XmlParent |
getAnAttribute |
Gets an XML attribute of this XML element. |
from XmlElement |
getArtifact |
Gets a child XML element named “artifactId”. |
from ProtoPom |
getAttribute |
Gets the attribute with the specified |
from XmlElement |
getAttributeValue |
Gets the value of the attribute with the specified |
from XmlElement |
getChild |
Gets the child element at a specified index of this XML parent. |
from XmlParent |
getDepth |
Gets the depth of this element within the XML file tree structure. |
from XmlElement |
getElementPositionIndex |
Gets the index of this XML element among its parent’s children. |
from XmlElement |
getFile |
Gets the XML file in which this XML element occurs. |
from XmlElement |
getGroup |
Gets a child XML element named “groupId”. |
from ProtoPom |
getIndex |
Gets the index of this XML element among its parent’s children. |
from XmlElement |
getLocation |
Gets the source location for this element. |
from XmlLocatable |
getName |
Gets the name of this XML element. |
from XmlElement |
getNamespace |
Gets the namespace of this XML element, if any. |
from XmlElement |
getNumberOfCharacterSets |
Gets the number of places in the body of this XML parent where text occurs. |
from XmlParent |
getNumberOfChildren |
Gets the number of child XML elements of this XML parent. |
from XmlParent |
getParent |
Gets the parent of this XML element. |
from XmlElement |
getShortCoordinate |
Gets a Maven coordinate of the form |
from ProtoPom |
getTextValue |
Gets the text value contained in this XML parent. |
from XmlParent |
getVersion |
Gets a child XML element named “version”. |
from ProtoPom |
hasAttribute |
Holds if this XML element has an attribute with the specified |
from XmlElement |
hasLocationInfo |
Holds if this element is at the specified location. The location spans column |
from XmlLocatable |
hasName |
Holds if this XML element has the given |
from XmlElement |
hasNamespace |
Holds if this XML element has a namespace. |
from XmlElement |
toString |
Gets a printable representation of this XML element. |
from XmlElement |