Class CollectorChildImpl<T>
java.lang.Object
io.github.douira.glsl_transformer.transform.CollectorChildImpl<T>
- All Implemented Interfaces:
CollectorChild<T>
- Direct Known Subclasses:
TokenFilter
This implementation of a collector child 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 phase collector set on this child.voidsetCollector(PhaseCollector<T> collector) Sets the parent collector 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.CollectorChild
getJobParameters, getLexer, getParser, getRootNode
-
Constructor Details
-
CollectorChildImpl
public CollectorChildImpl()
-
-
Method Details
-
getCollector
Description copied from interface:CollectorChildReturns the phase collector set on this child.- Specified by:
getCollectorin interfaceCollectorChild<T>- Returns:
- The currently set phase collector
-
setCollector
Description copied from interface:CollectorChildSets the parent collector of this child.- Specified by:
setCollectorin interfaceCollectorChild<T>- Parameters:
collector- The phase collector to set as the parent
-