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 Type
    Method
    Description
    Returns the phase collector set on this child.
    default T
    Returns the phase collector's current job parameters.
    default Lexer
    Returns the executing phase collector's lexer.
    default Parser
    Returns the executing phase collector's parser.
    default io.github.douira.glsl_transformer.GLSLParser.TranslationUnitContext
    Returns the root node taken from the phase collector that is currently executing this phase.
    void
    Sets the parent collector of this child.
  • Method Details

    • setCollector

      void setCollector(PhaseCollector<T> collector)
      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

      default Parser getParser()
      Returns the executing phase collector's parser.
      Returns:
      The parser
    • getLexer

      default Lexer 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

      default T getJobParameters()
      Returns the phase collector's current job parameters.
      Returns:
      The phase collector's current job parameters
      See Also:
      • PhaseCollector.getJobParameters()