Interface VariableResolver
-
- All Superinterfaces:
BiFunction<String,GremlinParser.VariableContext,Object>
- All Known Implementing Classes:
VariableResolver.DefaultVariableResolver
,VariableResolver.NoVariableResolver
,VariableResolver.NullVariableResolver
public interface VariableResolver extends BiFunction<String,GremlinParser.VariableContext,Object>
Resolves parameters in Gremlin to objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VariableResolver.DefaultVariableResolver
Allows for a provided variable set in the form of aMap
, where the keys are variable names and the values are the parameter values to be injected into the traversal in their place.static class
VariableResolver.NoVariableResolver
ThisVariableResolver
implementation throws exceptions for all variable names.static class
VariableResolver.NullVariableResolver
ThisVariableResolver
simply provides anull
value for all variable names.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
apply(String varName, GremlinParser.VariableContext variableContext)
This function resolves a variable name and the given parsers context to an object.-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
Object apply(String varName, GremlinParser.VariableContext variableContext)
This function resolves a variable name and the given parsers context to an object.- Specified by:
apply
in interfaceBiFunction<String,GremlinParser.VariableContext,Object>
-
-