1 | /** | |
2 | * dgd: com.lowagie.text.pdf.parser | |
3 | */ | |
4 | package com.lowagie.text.pdf.parser; | |
5 | ||
6 | import com.lowagie.text.pdf.PdfReader; | |
7 | ||
8 | import javax.annotation.Nullable; | |
9 | ||
10 | /** | |
11 | * @author dgd | |
12 | */ | |
13 | public class FinalText implements TextAssemblyBuffer { | |
14 | ||
15 | private String content; | |
16 | ||
17 | public FinalText(String content) { | |
18 | this.content = content; | |
19 | } | |
20 | ||
21 | /** | |
22 | * {@inheritDoc} | |
23 | * | |
24 | * @see com.lowagie.text.pdf.parser.TextAssemblyBuffer#getText() | |
25 | */ | |
26 | @Nullable | |
27 | @Override | |
28 | public String getText() { | |
29 | return content; | |
30 | } | |
31 | ||
32 | /** | |
33 | * {@inheritDoc} | |
34 | * | |
35 | * @see com.lowagie.text.pdf.parser.TextAssemblyBuffer#accumulate(com.lowagie.text.pdf.parser.TextAssembler, String) | |
36 | */ | |
37 | @Override | |
38 | public void accumulate(TextAssembler p, String contextName) { | |
39 | p.process(this, contextName); | |
40 | } | |
41 | ||
42 | /** | |
43 | * {@inheritDoc} | |
44 | * | |
45 | * @see com.lowagie.text.pdf.parser.TextAssemblyBuffer#assemble(com.lowagie.text.pdf.parser.TextAssembler) | |
46 | */ | |
47 | @Override | |
48 | public void assemble(TextAssembler p) { | |
49 | p.renderText(this); | |
50 | } | |
51 | ||
52 | /** | |
53 | * {@inheritDoc} | |
54 | * | |
55 | * @see com.lowagie.text.pdf.parser.TextAssemblyBuffer#getFinalText(PdfReader, | |
56 | * int, TextAssembler, boolean) | |
57 | */ | |
58 | @Override | |
59 | public FinalText getFinalText(PdfReader reader, int page, TextAssembler assembler, boolean useMarkup) { | |
60 |
1
1. getFinalText : mutated return of Object value for com/lowagie/text/pdf/parser/FinalText::getFinalText to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return this; |
61 | } | |
62 | ||
63 | @Override | |
64 | public String toString() { | |
65 | return "[FinalText: [" + getText() + "] d]"; | |
66 | } | |
67 | } | |
Mutations | ||
60 |
1.1 |