Class TraversalEnumParser
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.language.grammar.TraversalEnumParser
-
-
Constructor Summary
Constructors Constructor Description TraversalEnumParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Direction
parseTraversalDirectionFromContext(GremlinParser.TraversalDirectionContext context)
Parsing ofDirection
requires some special handling because of aliases (from/to).static <E extends Enum<E>,C extends org.antlr.v4.runtime.tree.ParseTree>
EparseTraversalEnumFromContext(Class<E> enumType, C context)
Parse enum text from a parse tree context into a enum object
-
-
-
Method Detail
-
parseTraversalEnumFromContext
public static <E extends Enum<E>,C extends org.antlr.v4.runtime.tree.ParseTree> E parseTraversalEnumFromContext(Class<E> enumType, C context)
Parse enum text from a parse tree context into a enum object- Parameters:
enumType
- : class of enumcontext
- : parse tree context- Returns:
- enum object
-
parseTraversalDirectionFromContext
public static Direction parseTraversalDirectionFromContext(GremlinParser.TraversalDirectionContext context)
Parsing ofDirection
requires some special handling because of aliases (from/to).
-
-