public void addChild ( AccessibilityNodeInfo child ) { if ( children == null ) { children = new ArrayList <> ( ) ; } children . add ( child ) ; ShadowAccessibilityNodeInfo shadowAccessibilityNodeInfo = Shadow . extract ( child ) ; shadowAccessibilityNodeInfo . parent = realAccessibilityNodeInfo ; }
Add a child node to this one . Also initializes the parent field of the child .