public void addChildAfter ( Node newChild , Node node ) { if ( newChild . next != null ) throw new RuntimeException ( "newChild had siblings in addChildAfter" ) ; newChild . next = node . next ; node . next = newChild ; if ( last == node ) last = newChild ; }
Add child after node .