@Beta public interface MacroEvaluator
Modifier and Type | Method and Description |
---|---|
String |
evaluate(String macroFunction,
String... arguments)
Use the macro function and call the function with provided arguments, function uses the
arguments and returns the evaluated response as a string.
|
default MacroObjectType |
evaluateAs(String macroFunction)
Get the type of the macro function evaluation result.
|
default Map<String,String> |
evaluateMap(String macroFunction,
String... arguments)
Use the macro function and call the function with provided arguments, function uses the
arguments and returns the evaluated response as a map.
|
String |
lookup(String property)
Lookup the property and return the value corresponding to the property.
|
String lookup(String property) throws InvalidMacroException
property
- name of the property to lookupInvalidMacroException
- if property evaluates invalid macroString evaluate(String macroFunction, String... arguments) throws InvalidMacroException
macroFunction
- macro function that has to be calledarguments
- arguments that will be passed to the macro functionInvalidMacroException
- if macroFunction is not supporteddefault Map<String,String> evaluateMap(String macroFunction, String... arguments) throws InvalidMacroException
macroFunction
- macro function that has to be calledarguments
- arguments that will be passed to the macro functionInvalidMacroException
- if macroFunction is not supporteddefault MacroObjectType evaluateAs(String macroFunction)
evaluate(String, String...)
will be called. If the type is map, evaluateMap(String,
String...)
will be called.macroFunction
- macro function that has to be calledCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.