com.vladsch.flexmark.ext.gfm.tables.TableVisitorExt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-ext-gfm-tables Show documentation
Show all versions of flexmark-ext-gfm-tables Show documentation
flexmark-java extension for GFM tables using "|" pipes (GitHub Flavored Markdown)
The newest version!
package com.vladsch.flexmark.ext.gfm.tables;
import com.vladsch.flexmark.util.ast.VisitHandler;
import com.vladsch.flexmark.util.ast.Visitor;
public class TableVisitorExt {
public static VisitHandler>[] VISIT_HANDLERS(V visitor) {
return new VisitHandler>[] {
new VisitHandler(TableCell.class, new Visitor() {
@Override
public void visit(TableCell node) {
visitor.visit(node);
}
}),
new VisitHandler(TableBlock.class, new Visitor() {
@Override
public void visit(TableBlock node) {
visitor.visit(node);
}
}),
new VisitHandler(TableHead.class, new Visitor() {
@Override
public void visit(TableHead node) {
visitor.visit(node);
}
}),
new VisitHandler(TableSeparator.class, new Visitor() {
@Override
public void visit(TableSeparator node) {
visitor.visit(node);
}
}),
new VisitHandler(TableBody.class, new Visitor() {
@Override
public void visit(TableBody node) {
visitor.visit(node);
}
}),
new VisitHandler(TableRow.class, new Visitor() {
@Override
public void visit(TableRow node) {
visitor.visit(node);
}
}),
new VisitHandler(TableCell.class, new Visitor() {
@Override
public void visit(TableCell node) {
visitor.visit(node);
}
})
};
}
}