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

com.vladsch.flexmark.util.dependency.Dependent Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy