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

com.vladsch.flexmark.ext.definition.DefinitionVisitorExt Maven / Gradle / Ivy

package com.vladsch.flexmark.ext.definition;

import com.vladsch.flexmark.ast.VisitHandler;
import com.vladsch.flexmark.ast.Visitor;

public class DefinitionVisitorExt {
    public static  VisitHandler[] VISIT_HANDLERS(final V visitor) {
        return new VisitHandler[] {
                new VisitHandler(DefinitionItem.class, new Visitor() {
                    @Override
                    public void visit(DefinitionItem node) {
                        visitor.visit(node);
                    }
                }),
                new VisitHandler(DefinitionList.class, new Visitor() {
                    @Override
                    public void visit(DefinitionList node) {
                        visitor.visit(node);
                    }
                }),
                new VisitHandler(DefinitionTerm.class, new Visitor() {
                    @Override
                    public void visit(DefinitionTerm node) {
                        visitor.visit(node);
                    }
                }),
                new VisitHandler(DefinitionItem.class, new Visitor() {
                    @Override
                    public void visit(DefinitionItem node) {
                        visitor.visit(node);
                    }
                }),
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy