Class TraversalEnumParser


  • public class TraversalEnumParser
    extends Object
    Traversal enum parser parses all the enums like (e.g. Scope in graph traversal.
    • 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