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

Class XmlAttribute

An attribute that occurs inside an XML element.

Examples:

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

Import path

import java

Direct supertypes

Indirect supertypes

Known direct subtypes

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 source location for this element.

from XmlLocatable
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 XmlLocatable