Class AbstractPhaseAction

java.lang.Object
com.blackbuild.klum.ast.runtime.internal.process.AbstractPhaseAction
All Implemented Interfaces:
PhaseAction
Direct Known Subclasses:
BuilderVisitingPhaseAction, InstantiatePhase, ModelVisitingPhaseAction, VerifyPhase, VisitingPhaseAction

public abstract class AbstractPhaseAction extends Object implements PhaseAction
Represents an action that is executed in a phase. The action is executed for each element in the model.
  • Constructor Details

    • AbstractPhaseAction

      protected AbstractPhaseAction(KlumPhase phase)
  • Method Details

    • getPhase

      public KlumPhase getPhase()
      Specified by:
      getPhase in interface PhaseAction
    • execute

      public void execute()
      Description copied from interface: PhaseAction
      Executes the phase on the given root element.
      Specified by:
      execute in interface PhaseAction
    • doExecute

      protected abstract void doExecute()
    • replaceRootObject

      protected final void replaceRootObject(Object rootObject)
      Allows a phase implementation to replace the lifecycle root without exposing that mutation publicly.
    • isUnset

      protected boolean isUnset(Map.Entry<String,Object> entry)
    • isSet

      protected boolean isSet(Map.Entry<String,Object> entry)
    • isEmpty

      protected static boolean isEmpty(Object value)