Interface CollectorChild<T>
- All Known Implementing Classes:
ChannelFilter,CollectorChildImpl,HandlerTarget,HandlerTargetImpl,MultiFilter,NewlineFilter,ParsedReplaceTarget,ParsedReplaceTargetImpl,ReplaceTarget,RunPhase,SearchTerminals,StringFilter,TerminalReplaceTarget,TerminalReplaceTargetImpl,ThrowTarget,ThrowTargetImpl,TokenFilter,TransformationPhase,WalkPhase,WrapThrowTarget,WrapThrowTargetImpl
public interface CollectorChild<T>
Implemented by classes that have a phase collector parent and can receive job
parameters.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the phase collector set on this child.default TReturns the phase collector's current job parameters.default LexergetLexer()Returns the executing phase collector's lexer.default ParserReturns the executing phase collector's parser.default io.github.douira.glsl_transformer.GLSLParser.TranslationUnitContextReturns the root node taken from the phase collector that is currently executing this phase.voidsetCollector(PhaseCollector<T> collector) Sets the parent collector of this child.
-
Method Details
-
setCollector
Sets the parent collector of this child.- Parameters:
collector- The phase collector to set as the parent
-
getCollector
PhaseCollector<T> getCollector()Returns the phase collector set on this child.- Returns:
- The currently set phase collector
-
getParser
Returns the executing phase collector's parser.- Returns:
- The parser
-
getLexer
Returns the executing phase collector's lexer.- Returns:
- The lexer
-
getRootNode
default io.github.douira.glsl_transformer.GLSLParser.TranslationUnitContext getRootNode()Returns the root node taken from the phase collector that is currently executing this phase.- Returns:
- The root node of the current executing phase collector
-
getJobParameters
Returns the phase collector's current job parameters.- Returns:
- The phase collector's current job parameters
- See Also:
-
PhaseCollector.getJobParameters()
-