public List < Statement > getAllStatements ( ) { List < Statement > ret = new ArrayList < Statement > ( ) ; // Statements within this group if ( statements != null ) { ret . addAll ( statements ) ; } // Statements within nested statement groups if ( statementGroups != null ) { for ( final StatementGroup sg : statementGroups ) ret . addAll ( sg . getAllStatements ( ) ) ; } return ret ; }
Returns a list of all statements contained by this statement group s statements and nested statement groups .