class RangeCoalescingVisitor extends RebuildingVisitor {

    @SuppressWarnings("unchecked")
    public static <T extends JexlNode> T coalesceRanges(T script) {
        RangeCoalescingVisitor visitor = new RangeCoalescingVisitor();
        
        return (T) script.jjtAccept(visitor, null);
    }

}