package com.vladsch.flexmark.ast;

public class VisitHandler<N extends Node> extends NodeAdaptingVisitHandler<N, Visitor<N>> implements Visitor<N> {
    public VisitHandler(Class<? extends N> aClass, Visitor<N> adapter) {
        super(aClass, adapter);
    }

    @Override
    public void visit(final Node node) {
        //noinspection unchecked
        myAdapter.visit((N) node);
    }
}
