Class LifecycleUserImpl<T extends JobParameters>
java.lang.Object
io.github.douira.glsl_transformer.transform.LifecycleUserImpl<T>
- All Implemented Interfaces:
LifecycleUser<T>
- Direct Known Subclasses:
TokenFilter,Transformation
This implementation of a lifecycle user may be used if a class can be
extended. A custom implementation should be considered if another class needs
to be extended. An instance of this class could also be held as a "trait" and
accessed through delegate methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the execution planner set on this child.booleanChecks if this lifecycle user has been initialized.voidMarks this lifecycle user as initialized.voidsetPlanner(ExecutionPlanner<T> planner) Sets the parent planner of this child.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.douira.glsl_transformer.transform.LifecycleUser
getJobParameters, getLexer, getParser, getRootNode, init, initOnce, resetState
-
Constructor Details
-
LifecycleUserImpl
public LifecycleUserImpl()
-
-
Method Details
-
getPlanner
Description copied from interface:LifecycleUserReturns the execution planner set on this child.- Specified by:
getPlannerin interfaceLifecycleUser<T extends JobParameters>- Returns:
- The currently set execution planner
-
setPlanner
Description copied from interface:LifecycleUserSets the parent planner of this child.- Specified by:
setPlannerin interfaceLifecycleUser<T extends JobParameters>- Parameters:
planner- The execution planner to set as the parent
-
isInitialized
public boolean isInitialized()Description copied from interface:LifecycleUserChecks if this lifecycle user has been initialized.- Specified by:
isInitializedin interfaceLifecycleUser<T extends JobParameters>- Returns:
- True if initialized, false otherwise
-
setInitialized
public void setInitialized()Description copied from interface:LifecycleUserMarks this lifecycle user as initialized.- Specified by:
setInitializedin interfaceLifecycleUser<T extends JobParameters>
-