VariableProcessor

internal class VariableProcessor<E> : VariableProcessorProtocol where E : Interpreter

A processor that can process a raw value with extra information, such as interpreter and context

  • An interpreter instance to use during the processing

    Declaration

    Swift

    let interpreter: E
  • The context to use during the processing

    Declaration

    Swift

    let context: Context
  • Initialiser of the processor

    Declaration

    Swift

    init(interpreter: E, context: Context)

    Parameters

    interpreter

    An interpreter instance to use during the processing

    context

    The context to use during the processing

  • Maps and evaluates variable content, based on its interpretation settings

    Declaration

    Swift

    func process(_ variable: VariableValue) -> Any?

    Parameters

    variable

    The variable to process

    Return Value

    The result of the matching operation