CodeQL library for Java/Kotlin
codeql/java-all 5.0.1-dev (changelog, source)
Search

Class Make::XmlAttribute

An attribute that occurs inside an XML element.

Examples:

package="com.example.exampleapp"
android:versionCode="1"

Import path

import codeql.xml.Xml

Direct supertypes

Indirect supertypes

Predicates

getElement

Gets the XML element to which this attribute belongs.

getName

Gets the name of this attribute.

getNamespace

Gets the namespace of this attribute, if any.

getValue

Gets the value of this attribute.

hasNamespace

Holds if this attribute has a namespace.

toString

Gets a printable representation of this XML attribute.

Inherited predicates

getLocation

Gets the location of this element.

from XmlLocatableImpl
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from XmlLocatableImpl