public Range [ ] getRanges ( ) { Range [ ] ranges = new Range [ nodes . size ( ) ] ; for ( int i = 0 ; i < ranges . length ; i ++ ) { ranges [ i ] = nodes . get ( i ) . getRange ( ) ; } return ranges ; }
As the regular expression was distributed in separate node every node has its own range . This method returns an array containing all range objects .