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

Class AndroidProviderXmlElement

A <provider> element in an Android manifest file.

Import path

import semmle.code.xml.AndroidManifest

Direct supertypes

Indirect supertypes

Predicates

grantsUriPermissions

Holds if this provider element has the attribute android:grantUriPermissions set to true.

hasIncompletePermissions

Holds if the provider element is only protected by either android:readPermission or android:writePermission.

requiresPermissions

Holds if this provider element has explicitly set a value for either its android:permission attribute or its android:readPermission and android:writePermission attributes.

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 name.

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
getAnIntentFilterElement

Gets an <intent-filter> child element of this component element.

from AndroidComponentXmlElement
getAttribute

Gets the attribute with the specified name, if any.

from XmlElement
getAttributeValue

Gets the value of the attribute with the specified name, if any.

from XmlElement
getChild

Gets the child element at a specified index of this XML parent.

from XmlParent
getComponentName

Gets the value of the android:name attribute of this component element.

from AndroidComponentXmlElement
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
getExportedAttributeValue

Gets the value of the android:exported attribute of this component element.

from AndroidComponentXmlElement
getFile

Gets the XML file in which this XML element occurs.

from XmlElement
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
getResolvedComponentName

Gets the resolved value of the android:name attribute of this component element.

from AndroidComponentXmlElement
getResolvedIdentifier

Gets the value of an identifier attribute, and tries to resolve it into a fully qualified identifier.

from AndroidComponentXmlElement
getTextValue

Gets the text value contained in this XML parent.

from XmlParent
hasAnIntentFilterElement

Holds if this component element has an <intent-filter> child element.

from AndroidComponentXmlElement
hasAttribute

Holds if this XML element has an attribute with the specified name.

from XmlElement
hasExportedAttribute

Holds if this component element has an android:exported attribute.

from AndroidComponentXmlElement
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
hasName

Holds if this XML element has the given name.

from XmlElement
hasNamespace

Holds if this XML element has a namespace.

from XmlElement
isExported

Holds if the android:exported attribute of this component element is true.

from AndroidComponentXmlElement
isNotExported

Holds if the android:exported attribute of this component element is explicitly set to false.

from AndroidComponentXmlElement
toString

Gets a printable representation of this XML element.

from XmlElement

Charpred