public Set < Term > getAllTerms ( ) { final Set < Term > ret = new HashSet < Term > ( ) ; for ( final StatementGroup sg : statementGroups ) { for ( final Statement stmt : sg . getAllStatements ( ) ) { ret . addAll ( stmt . getAllTerms ( ) ) ; } } return ret ; }
Returns the set of all terms contained within the document .