public interface MEXTransformerEvaluatorI
MEXTransformer
to process and potentially replace content found within curly brace expressions.
Implementations of this interface are responsible for both recognizing a specific expression type (like variable definitions, unions, or full-text expansions) and executing the necessary replacement or side-effect logic.
The core contract follows a Chain of Responsibility pattern: an evaluator performs a single step of recognition. If the content matches its specialized logic, it returns the replacement; otherwise, it returns the original object to allow the next evaluator in the chain to attempt processing.
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
evaluate(java.lang.CharSequence s,
MEXTransformer transformer)
Attempts to evaluate the content of a curly brace block and determine a replacement value.
|
java.lang.CharSequence evaluate(java.lang.CharSequence s,
MEXTransformer transformer)
The method must adhere to the following logic:
s to see if it matches the evaluator's specific expression pattern
(e.g. starts with a specific keyword like @union or @prefetch).
CharSequence (which can be an empty string).
s object MUST be returned.
This signals to the MEXTransformer that the block remains unprocessed, and it will
be passed to the next evaluator in the sequence.
s - The CharSequence containing the raw content found inside the original curly
brace block (without the surrounding braces).transformer - The processing MEXTransformer instance, providing access to the transformation
context, such as variables or the underlying query state.CharSequence (including empty strings) if processed;
otherwise, the exact original object s.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.