Class VariableResolver.NullVariableResolver
java.lang.Object
org.apache.tinkerpop.gremlin.language.grammar.VariableResolver.NullVariableResolver
- All Implemented Interfaces:
BiFunction<String,,GremlinParser.VariableContext, Object> VariableResolver<Object>
- Enclosing interface:
- VariableResolver<T>
public static class VariableResolver.NullVariableResolver
extends Object
implements VariableResolver<Object>
This
VariableResolver simply provides a null value for all variable names. It's typical use
is for when you really don't intend to execute the traversal and just want to get an instance of one when
bindings are being used as with NoOpTerminalVisitor.-
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 TypeMethodDescriptionapply(String s, GremlinParser.VariableContext variableContext) This function resolves a variable name and the given parsers context to an object.static VariableResolverinstance()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
-
NullVariableResolver
public NullVariableResolver()
-
-
Method Details
-
instance
-
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, Object> - Specified by:
applyin interfaceVariableResolver<Object>
-