public static List < String > getExpressionsNames ( ReportLayout layout ) { List < String > expressions = new LinkedList < String > ( ) ; for ( Band band : layout . getBands ( ) ) { for ( int i = 0 , rows = band . getRowCount ( ) ; i < rows ; i ++ ) { List < BandElement > list = band . getRow ( i ) ; for ( BandElement be : list ) { if ( be instanceof ExpressionBandElement ) { String expName = ( ( ExpressionBandElement ) be ) . getExpressionName ( ) ; if ( ! expressions . contains ( expName ) ) { expressions . add ( expName ) ; } } } } } return expressions ; }
Get expression names from report layout