Interface MacroType
- All Known Implementing Classes:
DemoMacro
public interface MacroType
Macro implementation. All macro classes must implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetValue(MacroDefinition macroDefinition, ValueProvider valueProvider, FieldContext context) Returns the value for a specific macro invocation.
-
Method Details
-
getValue
Optional<String> getValue(MacroDefinition macroDefinition, ValueProvider valueProvider, FieldContext context) Returns the value for a specific macro invocation.- Parameters:
macroDefinition- The macro definitionvalueProvider- A value provider that either provides a property backed value or the initial (default) valuecontext- The Field context- Returns:
- An
Optionalwrapping a string value. If the macro returnsOptional.empty(), the field value will be the empty string
-