Package org.apache.tinkerpop.gremlin.language.grammar
package org.apache.tinkerpop.gremlin.language.grammar
-
ClassDescriptionThis class provides implementation of
GremlinVisitor, where each method will throwUnsupportedOperationException.Visitor class to handle generic literal.This class implements theGraphTraversalSourceproducing methods of Gremlin grammar.This is the entry point for converting the Gremlin Antlr grammar into Java.This class provides an empty implementation ofGremlinListener, which can be extended to create a listener which only needs to handle a subset of the available methods.This class provides an empty implementation ofGremlinVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.Gremlin error listener class which throwGremlinParserExceptionon syntax error.This interface defines a complete listener for a parse tree produced byGremlinParser.This exception is thrown when a parser error is encountered.Parses Gremlin strings to anObject, typically to aTraversal.This interface defines a complete generic visitor for a parse tree produced byGremlinParser.This class implements Gremlin grammar's nested-traversal-list methods that returns aTraversal[]to the callers.This is the entry point for converting the Gremlin Antlr grammar into Java.A visitor for parsing parameter map strings that prevents traversal injection.Antlr parse tree context cast helper.Handles terminal steps forGremlinLangas they are not added this way naturally.Traversal enum parser parses all the enums like (e.g.Specific case of TraversalRootVisitor where all TraversalMethods returns a GraphTraversal object.TraversalRootVisitor<G extends Traversal>This visitor handles the cases when a new traversal is getting started.AGraphTraversalSourceself method visitor.Use aGraphTraversalSourceas the source and returns aGraphTraversalobject.Handles transactions via calls totx().Traversal terminal method visitorResolves parameters in Gremlin to objects.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.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.ThisVariableResolverimplementation throws exceptions for all variable names.ThisVariableResolversimply provides anullvalue for all variable names.The exception thrown when a variable cannot be resolved for a particular parameter name.CoversStringoriented constants used as arguments toGraphTraversal.with(String)steps.