public Object eval(Object rootObject) {
        if (rootObject == null) {
            return null;
        }

        init();

        Object currentObject = rootObject;
        for (int i = 0; i < segments.length; ++i) {
            Segment segment = segments[i];
            currentObject = segment.eval(this, rootObject, currentObject);
        }
        return currentObject;
    }
@author wenshao[szujobs@hotmail.com]
@since 1.2.0
src/main/java/com/alibaba/fastjson/JSONPath.java