Class ModelVisitingPhaseAction

java.lang.Object
com.blackbuild.klum.ast.runtime.internal.process.AbstractPhaseAction
com.blackbuild.klum.ast.runtime.ModelVisitingPhaseAction
All Implemented Interfaces:
ModelVisitor, PhaseAction
Direct Known Subclasses:
CleanupPhase, ValidationPhase

public abstract class ModelVisitingPhaseAction extends AbstractPhaseAction implements ModelVisitor
Visits completed DSL Objects after DefaultKlumPhase.INSTANTIATE.
  • Constructor Details

    • ModelVisitingPhaseAction

      protected ModelVisitingPhaseAction(KlumPhase phase)
  • Method Details

    • doExecute

      protected void doExecute()
      Specified by:
      doExecute in class AbstractPhaseAction
    • visit

      public final void visit(@NotNull @NotNull String path, @NotNull @NotNull Object element, @Nullable @Nullable Object container, @Nullable @Nullable String nameOfFieldInContainer)
      Description copied from interface: ModelVisitor
      Visit the given element.
      Specified by:
      visit in interface ModelVisitor
      Parameters:
      path - a string (GSON-like) representation of the path from the root to this element
      element - the element to visit
      container - The object containing this element. If the element is a member of a collection or map, the object containing the collection or map.
      nameOfFieldInContainer - The name of the field in the container pointing to this object (or its collection/map
    • doVisit

      protected abstract void doVisit(@NotNull @NotNull String path, @NotNull @NotNull Object element, @Nullable @Nullable Object container, @Nullable @Nullable String nameOfFieldInContainer)