Package io.dialob.rule.parser.api
Interface VariableFinder
-
@Enclosing public interface VariableFinder
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceVariableFinder.Functionstatic interfaceVariableFinder.Varstatic interfaceVariableFinder.Variable
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<String>findValueSetIdFor(String variableId)default Optional<String>findVariableScope(String variableName)@Nullable StringgetScope()default Optional<Object>getVariableDefaultValue(String variableId)booleanisAsync(String functionName)default @NotNull StringmapAlias(String aliasName)Maps context specific alias id to real id@Nullable ValueTypereturnTypeOf(String functionName, ValueType... argTypes)@Nullable ValueTypetypeOf(String variableName)
-
-
-
Method Detail
-
getScope
@Nullable @Nullable String getScope()
-
typeOf
@Nullable @Nullable ValueType typeOf(String variableName) throws VariableNotDefinedException
- Throws:
VariableNotDefinedException
-
returnTypeOf
@Nullable @Nullable ValueType returnTypeOf(String functionName, ValueType... argTypes) throws VariableNotDefinedException
- Throws:
VariableNotDefinedException
-
isAsync
boolean isAsync(String functionName)
-
mapAlias
@NotNull default @NotNull String mapAlias(String aliasName)
Maps context specific alias id to real id- Parameters:
aliasName-- Returns:
- id of actual variable
-
findVariableScope
default Optional<String> findVariableScope(String variableName)
- Parameters:
variableName-- Returns:
- contextId of variable, and null if global
-
-