All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.ext.gfm.tables.TableVisitorExt Maven / Gradle / Ivy

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);
                    }
                })
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy