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

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

Go to download

Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)

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

import com.vladsch.flexmark.html.renderer.AttributablePart;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.html.Attributes;
import com.vladsch.flexmark.util.visitor.AstAction;
import com.vladsch.flexmark.util.visitor.AstHandler;

public class AttributeProvidingHandler extends AstHandler> {
    public AttributeProvidingHandler(Class aClass, AttributeProvidingVisitor adapter) {
        super(aClass, adapter);
    }

    public void setAttributes(Node node, AttributablePart part, Attributes attributes) {
        //noinspection unchecked
        getAdapter().setAttributes((N) node, part, attributes);
    }

    public static interface AttributeProvidingVisitor extends AstAction {
        void setAttributes(N node, AttributablePart part, Attributes attributes);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy