Interface VariableResolver
-
- All Superinterfaces:
BiFunction<String,GremlinParser.VariableContext,Object>
- All Known Implementing Classes:
VariableResolver.DefaultVariableResolver,VariableResolver.NoVariableResolver
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 classVariableResolver.DefaultVariableResolverAllows 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 classVariableResolver.NoVariableResolverThisVariableResolverimplementation throws exceptions for all variable names.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectapply(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:
applyin interfaceBiFunction<String,GremlinParser.VariableContext,Object>
-
-