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
Represents an action that is executed in a phase. The action is executed for each element in the model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidvoidexecute()Executes the phase on the given root element.getPhase()protected static booleanprotected booleanprotected booleanprotected final voidreplaceRootObject(Object rootObject) Allows a phase implementation to replace the lifecycle root without exposing that mutation publicly.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blackbuild.klum.ast.runtime.PhaseAction
getPhaseNumber, getSkipProperty, shouldSkip
-
Constructor Details
-
AbstractPhaseAction
-
-
Method Details
-
getPhase
- Specified by:
getPhasein interfacePhaseAction
-
execute
public void execute()Description copied from interface:PhaseActionExecutes the phase on the given root element.- Specified by:
executein interfacePhaseAction
-
doExecute
protected abstract void doExecute() -
replaceRootObject
Allows a phase implementation to replace the lifecycle root without exposing that mutation publicly. -
isUnset
-
isSet
-
isEmpty
-