Interface VariableResolver<T>
- All Superinterfaces:
BiFunction<String,GremlinParser.VariableContext, T>
- All Known Implementing Classes:
VariableResolver.DefaultVariableResolver,VariableResolver.DirectVariableResolver,VariableResolver.NoVariableResolver,VariableResolver.NullVariableResolver
Resolves parameters in Gremlin to objects.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAllows 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 classAllows 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 classThisVariableResolverimplementation throws exceptions for all variable names.static classThisVariableResolversimply provides anullvalue for all variable names. -
Method Summary
Modifier and TypeMethodDescriptionapply(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 Details
-
apply
This function resolves a variable name and the given parsers context to an object.- Specified by:
applyin interfaceBiFunction<String,GremlinParser.VariableContext, T>
-