Class ParseTreeContextCastHelper


  • public class ParseTreeContextCastHelper
    extends Object
    Antlr parse tree context cast helper.
    • Constructor Detail

      • ParseTreeContextCastHelper

        public ParseTreeContextCastHelper()
    • Method Detail

      • castChildToGenericLiteral

        public static GremlinParser.GenericLiteralContext castChildToGenericLiteral​(org.antlr.v4.runtime.tree.ParseTree ctx,
                                                                                    int childIndex)
        Cast ParseTree node child into GenericLiteralContext
        Parameters:
        ctx - : ParseTree node
        childIndex - : child index
        Returns:
        casted GenericLiteralContext
      • castChildToGenericLiteralList

        public static GremlinParser.GenericLiteralListContext castChildToGenericLiteralList​(org.antlr.v4.runtime.tree.ParseTree ctx,
                                                                                            int childIndex)
        Cast ParseTree node child into GenericLiteralListContext
        Parameters:
        ctx - : ParseTree node
        childIndex - : child index
        Returns:
        casted GenericLiteralListContext