com.vladsch.flexmark.ast.util.AttributeProvidingHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark Show documentation
Show all versions of flexmark Show documentation
Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)
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