public ListIterable < Expression > getSelectExpressionOrder ( KunderaQuery query ) { if ( ! KunderaQueryUtils . isSelectStatement ( query . getJpqlExpression ( ) ) ) { return null ; } Expression selectExpression = ( ( SelectClause ) ( query . getSelectStatement ( ) ) . getSelectClause ( ) ) . getSelectExpression ( ) ; List < Expression > list ; if ( ! ( selectExpression instanceof CollectionExpression ) ) { list = new LinkedList < Expression > ( ) ; list . add ( selectExpression ) ; return new SnapshotCloneListIterable < Expression > ( list ) ; } else { return selectExpression . children ( ) ; } }
Gets the select expression order .