blob: 283772592b61673f6eaeb476ce471e01968808e1 (
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
30
31
32
33
|
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;
}
public int getRowspan() {
return rowspan;
}
@Override
public List<DocumentElement> getChildren() {
return children;
}
@Override
public <T, U> T accept(DocumentElementVisitor<T, U> visitor, U context) {
return visitor.visit(this, context);
}
}
|