DialectSqlItem [ ] seperateCharsToItems ( char [ ] chars , int start , int end ) { List < DialectSqlItem > items = new ArrayList < DialectSqlItem > ( ) ; SearchResult result = findFirstResult ( chars , start , end ) ; while ( result != null ) { items . add ( result . item ) ; result = findFirstResult ( chars , result . leftStart , result . leftEnd ) ; } return items . toArray ( new DialectSqlItem [ items . size ( ) ] ) ; }
Separate chars to Items list