public List < String > getLiterals ( ) { return this . templateChunks . stream ( ) . filter ( templateChunk -> Literal . class . isAssignableFrom ( templateChunk . getClass ( ) ) ) . map ( TemplateChunk :: toString ) . filter ( Objects :: nonNull ) . collect ( Collectors . toList ( ) ) ; }
List of all Literals in the Template .