com.vladsch.flexmark.util.dependency.Dependent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-util-dependency Show documentation
Show all versions of flexmark-util-dependency Show documentation
flexmark-java dependency utility classes
The newest version!
package com.vladsch.flexmark.util.dependency;
import java.util.Set;
import org.jetbrains.annotations.Nullable;
public interface Dependent {
/**
* @return null or a list of dependents that must be executed before calling this one if any of
* the blocks in the list affect global state then these will be run on ALL blocks of the
* document before this preprocessor is called.
*/
@Nullable
Set> getAfterDependents();
/**
* @return null or a list of dependents that must be executed after calling this one if any of the
* blocks in the list affect global state then these will be run on ALL blocks of the document
* before this preprocessor is called.
*/
@Nullable
Set> getBeforeDependents();
/**
* @return true if this dependent affects the global scope, which means that any that depend on it
* have to be run after this dependent has run against all elements. Otherwise, the dependent
* can run on an element after its dependents have processed an element. parsed.
*/
boolean affectsGlobalScope();
}