Class VariableResolver.DefaultVariableResolver
java.lang.Object
org.apache.tinkerpop.gremlin.language.grammar.VariableResolver.DefaultVariableResolver
- All Implemented Interfaces:
BiFunction<String,,GremlinParser.VariableContext, GValue<?>> VariableResolver<GValue<?>>
- Enclosing interface:
- VariableResolver<T>
public static class VariableResolver.DefaultVariableResolver
extends Object
implements VariableResolver<GValue<?>>
Allows for a provided variable set in the form of a
Map, where the keys are variable names and the
values are the parameter values to be injected into the traversal in their place. The value is provided to a
GValue object along with the variable name for further reference.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.language.grammar.VariableResolver
VariableResolver.DefaultVariableResolver, VariableResolver.DirectVariableResolver, VariableResolver.NoVariableResolver, VariableResolver.NullVariableResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGValue<?>apply(String s, GremlinParser.VariableContext variableContext) This function resolves a variable name and the given parsers context to an object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
DefaultVariableResolver
-
-
Method Details
-
apply
Description copied from interface:VariableResolverThis function resolves a variable name and the given parsers context to an object.- Specified by:
applyin interfaceBiFunction<String,GremlinParser.VariableContext, GValue<?>> - Specified by:
applyin interfaceVariableResolver<GValue<?>>
-