blob: b108de879e34b90b511bd4a8c2e65ea298c1f198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package org.zwobble.mammoth.internal.documents;
import java.util.List;
public class TableCell implements DocumentElement, HasChildren {
private final int rowspan;
private final int colspan;
private final List<DocumentElement> children;
public TableCell(int rowspan, int colspan, List<DocumentElement> children) {
this.rowspan = rowspan;
this.children = children;
this.colspan = colspan;
}
public int getColspan() {
return colspan;
}
@Override
public List<DocumentElement> getChildren() {
return children;
}
@Override
public <T> T accept(DocumentElementVisitor<T> visitor) {
return visitor.visit(this);
}
}
|