Constructor and Description |
---|
TraversalEnumParser() |
Modifier and Type | Method and Description |
---|---|
static Direction |
parseTraversalDirectionFromContext(GremlinParser.TraversalDirectionContext context)
Parsing of
Direction requires some special handling because of aliases (from/to). |
static <E extends Enum<E>,C extends org.antlr.v4.runtime.tree.ParseTree> |
parseTraversalEnumFromContext(Class<E> enumType,
C context)
Parse enum text from a parse tree context into a enum object
|
public static <E extends Enum<E>,C extends org.antlr.v4.runtime.tree.ParseTree> E parseTraversalEnumFromContext(Class<E> enumType, C context)
enumType
- : class of enumcontext
- : parse tree contextpublic static Direction parseTraversalDirectionFromContext(GremlinParser.TraversalDirectionContext context)
Direction
requires some special handling because of aliases (from/to).Copyright © 2013–2022 Apache Software Foundation. All rights reserved.