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

com.vladsch.flexmark.ast.util.LinkResolvingHandler Maven / Gradle / Ivy

There is a newer version: 4.15.102
Show newest version
package com.vladsch.flexmark.ast.util;

import com.vladsch.flexmark.html.renderer.LinkResolverBasicContext;
import com.vladsch.flexmark.html.renderer.ResolvedLink;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.visitor.AstAction;
import com.vladsch.flexmark.util.visitor.AstHandler;

public class LinkResolvingHandler extends AstHandler> {
    public LinkResolvingHandler(Class aClass, LinkResolvingVisitor adapter) {
        super(aClass, adapter);
    }

    public ResolvedLink resolveLink(Node node, LinkResolverBasicContext context, ResolvedLink link) {
        //noinspection unchecked
        return getAdapter().resolveLink((N) node, context, link);
    }

    public static interface LinkResolvingVisitor extends AstAction {
        ResolvedLink resolveLink(N node, LinkResolverBasicContext context, ResolvedLink link);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy