siblingLocations(location, hierarchy, boolean)

siblingLocations(location, hierarchy, boolean)returns the list of siblings in the specified location along the specified hierarchy. The boolean flags control which siblings to exclude in the output.

siblingLocations(Location loc, Hierarchy h, boolean excludeLeftSiblings, boolean excludeRightSiblings, boolean excludeSelf)