protected T getElement()

in src/main/java/org/apache/sling/query/impl/iterator/ParentsIterator.java [41:56]


    protected T getElement() {
        if (currentResource == null) {
            return null;
        }
        currentResource = provider.getParent(currentResource);

        if (currentResource == null) {
            return null;
        }

        if (until != null && until.test(currentResource)) {
            return null;
        }

        return currentResource;
    }