org.apache.tinkerpop.gremlin.language.grammar

## Class TraversalEnumParser

- java.lang.Object
- - org.apache.tinkerpop.gremlin.language.grammar.TraversalEnumParser

-     public class TraversalEnumParser
      extends Object

  Traversal enum parser parses all the enums like (e.g. `Scope` in graph traversal.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TraversalEnumParser()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TraversalEnumParser

          public TraversalEnumParser()

  - ### 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 enum
        `context` - : parse tree context
      Returns:
        enum object

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.