# Class AccessibilityTreeSnapshot

java.lang.Object
com.codename1.ui.accessibility.AccessibilityTreeSnapshot

public final class AccessibilityTreeSnapshot extends Object
Immutable accessibility tree for the current form.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getGeneration()`
  `AccessibilityNodeSnapshot`
  `getNode(long id)`
  `AccessibilityNodeSnapshot`
  `getNodeAt(int x, int y)`
  Returns the deepest semantic node containing the screen coordinate.
  `AccessibilityNodeSnapshot`
  `getNodeByIdentifier(String identifier)`
  Finds a node by its application-supplied stable identifier.
  `Map<Long, AccessibilityNodeSnapshot>`
  `getNodes()`
  `List<Long>`
  `getRootIds()`
  `String`
  `toJson()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getGeneration

    public long getGeneration()

  - ### getRootIds

    public List<Long> getRootIds()

  - ### getNodes

    public Map<Long, AccessibilityNodeSnapshot> getNodes()

  - ### getNode

    public AccessibilityNodeSnapshot getNode(long id)

  - ### getNodeByIdentifier

    public AccessibilityNodeSnapshot getNodeByIdentifier(String identifier)

    Finds a node by its application-supplied stable identifier.

    ###### Parameters

    - `identifier`: identifier assigned with `AccessibilityNode#setIdentifier(String)`

    ###### Returns

    the matching node, or null when no node has that identifier.

  - ### getNodeAt

    public AccessibilityNodeSnapshot getNodeAt(int x, int y)
    Returns the deepest semantic node containing the screen coordinate.

  - ### toJson

    public String toJson()