Class GenericLiteralVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.apache.tinkerpop.gremlin.language.grammar.DefaultGremlinBaseVisitor<Object>
-
- org.apache.tinkerpop.gremlin.language.grammar.GenericLiteralVisitor
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
,GremlinVisitor<Object>
public class GenericLiteralVisitor extends DefaultGremlinBaseVisitor<Object>
Visitor class to handle generic literal. All visitor methods return type is Object. It maybe used as a singleton in cases where aTraversal
object is not expected, otherwise a new instance must be constructed.
-
-
Field Summary
Fields Modifier and Type Field Description protected GremlinAntlrToJava
antlr
static int
TOTAL_INTEGER_RANGE_RESULT_COUNT_LIMIT
Limit for integer range result count.
-
Constructor Summary
Constructors Constructor Description GenericLiteralVisitor(GremlinAntlrToJava antlr)
-
Method Summary
-
Methods inherited from class org.apache.tinkerpop.gremlin.language.grammar.DefaultGremlinBaseVisitor
notImplemented, visitBooleanArgument, visitChainedParentOfGraphTraversal, visitChainedTraversal, visitConnectedComponentConstants, visitConnectedComponentConstants_component, visitConnectedComponentConstants_edges, visitConnectedComponentConstants_propertyName, visitConnectedComponentStringConstant, visitDateArgument, visitEmptyQuery, visitFloatArgument, visitGenericLiteralArgument, visitGenericLiteralListArgument, visitGenericLiteralMapArgument, visitGenericLiteralMapNullableArgument, visitGenericLiteralVarargs, visitIntegerArgument, visitIoOptionsConstants_graphml, visitIoOptionsConstants_graphson, visitIoOptionsConstants_gryo, visitIoOptionsConstants_reader, visitIoOptionsConstants_writer, visitIoOptionsKeys, visitIoOptionsStringConstant, visitIoOptionsValues, visitMapEntry, visitNestedTraversalExpr, visitNestedTraversalList, visitPageRankConstants, visitPageRankConstants_edges, visitPageRankConstants_propertyName, visitPageRankConstants_times, visitPageRankStringConstant, visitPeerPressureConstants, visitPeerPressureConstants_edges, visitPeerPressureConstants_propertyName, visitPeerPressureConstants_times, visitPeerPressureStringConstant, visitQuery, visitQueryList, visitRootTraversal, visitShortestPathConstants, visitShortestPathConstants_distance, visitShortestPathConstants_edges, visitShortestPathConstants_includeEdges, visitShortestPathConstants_maxDistance, visitShortestPathConstants_target, visitShortestPathStringConstant, visitStringArgument, visitStringLiteralExpr, visitStringLiteralVarargs, visitStringNullableArgument, visitStructureVertexArgument, visitTransactionPart, visitTraversalBiFunction, visitTraversalBiFunctionArgument, visitTraversalCardinalityArgument, visitTraversalColumn, visitTraversalColumnArgument, visitTraversalComparator, visitTraversalComparatorArgument, visitTraversalDirectionArgument, visitTraversalDT, visitTraversalDTArgument, visitTraversalFunction, visitTraversalFunctionArgument, visitTraversalMergeArgument, visitTraversalMethod, visitTraversalMethod_addE_String, visitTraversalMethod_addE_Traversal, visitTraversalMethod_addV_Empty, visitTraversalMethod_addV_String, visitTraversalMethod_addV_Traversal, visitTraversalMethod_aggregate_Scope_String, visitTraversalMethod_aggregate_String, visitTraversalMethod_all_P, visitTraversalMethod_and, visitTraversalMethod_any_P, visitTraversalMethod_as, visitTraversalMethod_asDate, visitTraversalMethod_asString_Empty, visitTraversalMethod_barrier_Consumer, visitTraversalMethod_barrier_Empty, visitTraversalMethod_barrier_int, visitTraversalMethod_both, visitTraversalMethod_bothE, visitTraversalMethod_bothV, visitTraversalMethod_branch, visitTraversalMethod_by_Comparator, visitTraversalMethod_by_Empty, visitTraversalMethod_by_Function, visitTraversalMethod_by_Function_Comparator, visitTraversalMethod_by_Order, visitTraversalMethod_by_String, visitTraversalMethod_by_String_Comparator, visitTraversalMethod_by_T, visitTraversalMethod_by_Traversal, visitTraversalMethod_by_Traversal_Comparator, visitTraversalMethod_call_string, visitTraversalMethod_call_string_map, visitTraversalMethod_call_string_map_traversal, visitTraversalMethod_call_string_traversal, visitTraversalMethod_cap, visitTraversalMethod_choose_Function, visitTraversalMethod_choose_Predicate_Traversal, visitTraversalMethod_choose_Predicate_Traversal_Traversal, visitTraversalMethod_choose_Traversal, visitTraversalMethod_choose_Traversal_Traversal, visitTraversalMethod_choose_Traversal_Traversal_Traversal, visitTraversalMethod_coalesce, visitTraversalMethod_coin, visitTraversalMethod_combine_Object, visitTraversalMethod_concat_String, visitTraversalMethod_concat_Traversal_Traversal, visitTraversalMethod_conjoin_String, visitTraversalMethod_connectedComponent, visitTraversalMethod_constant, visitTraversalMethod_count_Empty, visitTraversalMethod_count_Scope, visitTraversalMethod_cyclicPath, visitTraversalMethod_dateAdd, visitTraversalMethod_dateDiff_Date, visitTraversalMethod_dateDiff_Traversal, visitTraversalMethod_dedup_Scope_String, visitTraversalMethod_dedup_String, visitTraversalMethod_difference_Object, visitTraversalMethod_disjunct_Object, visitTraversalMethod_drop, visitTraversalMethod_E, visitTraversalMethod_element, visitTraversalMethod_elementMap, visitTraversalMethod_emit_Empty, visitTraversalMethod_emit_Predicate, visitTraversalMethod_emit_Traversal, visitTraversalMethod_fail_Empty, visitTraversalMethod_fail_String, visitTraversalMethod_filter_Predicate, visitTraversalMethod_filter_Traversal, visitTraversalMethod_flatMap, visitTraversalMethod_fold_Empty, visitTraversalMethod_fold_Object_BiFunction, visitTraversalMethod_from_String, visitTraversalMethod_from_Traversal, visitTraversalMethod_from_Vertex, visitTraversalMethod_group_Empty, visitTraversalMethod_group_String, visitTraversalMethod_groupCount_Empty, visitTraversalMethod_groupCount_String, visitTraversalMethod_has_String, visitTraversalMethod_has_String_Object, visitTraversalMethod_has_String_P, visitTraversalMethod_has_String_String_Object, visitTraversalMethod_has_String_String_P, visitTraversalMethod_has_String_Traversal, visitTraversalMethod_has_T_Object, visitTraversalMethod_has_T_P, visitTraversalMethod_has_T_Traversal, visitTraversalMethod_hasId_Object_Object, visitTraversalMethod_hasId_P, visitTraversalMethod_hasKey_P, visitTraversalMethod_hasKey_String_String, visitTraversalMethod_hasLabel_P, visitTraversalMethod_hasLabel_String_String, visitTraversalMethod_hasNot, visitTraversalMethod_hasValue_Object_Object, visitTraversalMethod_hasValue_P, visitTraversalMethod_id, visitTraversalMethod_identity, visitTraversalMethod_in, visitTraversalMethod_index, visitTraversalMethod_inE, visitTraversalMethod_inject, visitTraversalMethod_intersect_Object, visitTraversalMethod_inV, visitTraversalMethod_is_Object, visitTraversalMethod_is_P, visitTraversalMethod_key, visitTraversalMethod_label, visitTraversalMethod_length_Empty, visitTraversalMethod_limit_long, visitTraversalMethod_limit_Scope_long, visitTraversalMethod_local, visitTraversalMethod_loops_Empty, visitTraversalMethod_loops_String, visitTraversalMethod_lTrim_Empty, visitTraversalMethod_map, visitTraversalMethod_match, visitTraversalMethod_math, visitTraversalMethod_max_Empty, visitTraversalMethod_max_Scope, visitTraversalMethod_mean_Empty, visitTraversalMethod_mean_Scope, visitTraversalMethod_merge_Object, visitTraversalMethod_mergeE_empty, visitTraversalMethod_mergeE_Map, visitTraversalMethod_mergeE_Traversal, visitTraversalMethod_mergeV_empty, visitTraversalMethod_mergeV_Map, visitTraversalMethod_mergeV_Traversal, visitTraversalMethod_min_Empty, visitTraversalMethod_min_Scope, visitTraversalMethod_not, visitTraversalMethod_option_Merge_Map, visitTraversalMethod_option_Merge_Map_Cardinality, visitTraversalMethod_option_Merge_Traversal, visitTraversalMethod_option_Object_Traversal, visitTraversalMethod_option_Predicate_Traversal, visitTraversalMethod_option_Traversal, visitTraversalMethod_optional, visitTraversalMethod_or, visitTraversalMethod_order_Empty, visitTraversalMethod_order_Scope, visitTraversalMethod_otherV, visitTraversalMethod_out, visitTraversalMethod_outE, visitTraversalMethod_outV, visitTraversalMethod_pageRank_double, visitTraversalMethod_pageRank_Empty, visitTraversalMethod_path, visitTraversalMethod_peerPressure, visitTraversalMethod_product_Object, visitTraversalMethod_profile_Empty, visitTraversalMethod_profile_String, visitTraversalMethod_project, visitTraversalMethod_properties, visitTraversalMethod_property_Cardinality_Object, visitTraversalMethod_property_Cardinality_Object_Object_Object, visitTraversalMethod_property_Object, visitTraversalMethod_property_Object_Object_Object, visitTraversalMethod_propertyMap, visitTraversalMethod_range_long_long, visitTraversalMethod_range_Scope_long_long, visitTraversalMethod_read, visitTraversalMethod_repeat_String_Traversal, visitTraversalMethod_repeat_Traversal, visitTraversalMethod_replace_String_String, visitTraversalMethod_reverse_Empty, visitTraversalMethod_rTrim_Empty, visitTraversalMethod_sack_BiFunction, visitTraversalMethod_sack_Empty, visitTraversalMethod_sample_int, visitTraversalMethod_sample_Scope_int, visitTraversalMethod_select_Column, visitTraversalMethod_select_Pop_String, visitTraversalMethod_select_Pop_String_String_String, visitTraversalMethod_select_Pop_Traversal, visitTraversalMethod_select_String, visitTraversalMethod_select_String_String_String, visitTraversalMethod_select_Traversal, visitTraversalMethod_shortestPath, visitTraversalMethod_sideEffect, visitTraversalMethod_simplePath, visitTraversalMethod_skip_long, visitTraversalMethod_skip_Scope_long, visitTraversalMethod_split_String, visitTraversalMethod_store, visitTraversalMethod_subgraph, visitTraversalMethod_substring_int, visitTraversalMethod_substring_int_int, visitTraversalMethod_sum_Empty, visitTraversalMethod_sum_Scope, visitTraversalMethod_tail_Empty, visitTraversalMethod_tail_long, visitTraversalMethod_tail_Scope, visitTraversalMethod_tail_Scope_long, visitTraversalMethod_timeLimit, visitTraversalMethod_times, visitTraversalMethod_to_Direction_String, visitTraversalMethod_to_String, visitTraversalMethod_to_Traversal, visitTraversalMethod_to_Vertex, visitTraversalMethod_toE, visitTraversalMethod_toLower_Empty, visitTraversalMethod_toUpper_Empty, visitTraversalMethod_toV, visitTraversalMethod_tree_Empty, visitTraversalMethod_tree_String, visitTraversalMethod_trim_Empty, visitTraversalMethod_unfold, visitTraversalMethod_union, visitTraversalMethod_until_Predicate, visitTraversalMethod_until_Traversal, visitTraversalMethod_V, visitTraversalMethod_value, visitTraversalMethod_valueMap_boolean_String, visitTraversalMethod_valueMap_String, visitTraversalMethod_values, visitTraversalMethod_where_P, visitTraversalMethod_where_String_P, visitTraversalMethod_where_Traversal, visitTraversalMethod_with_String, visitTraversalMethod_with_String_Object, visitTraversalMethod_write, visitTraversalOperator, visitTraversalOrder, visitTraversalOrderArgument, visitTraversalPop, visitTraversalPopArgument, visitTraversalPredicate, visitTraversalPredicate_between, visitTraversalPredicate_containing, visitTraversalPredicate_endingWith, visitTraversalPredicate_eq, visitTraversalPredicate_gt, visitTraversalPredicate_gte, visitTraversalPredicate_inside, visitTraversalPredicate_lt, visitTraversalPredicate_lte, visitTraversalPredicate_neq, visitTraversalPredicate_not, visitTraversalPredicate_notContaining, visitTraversalPredicate_notEndingWith, visitTraversalPredicate_notRegex, visitTraversalPredicate_notStartingWith, visitTraversalPredicate_outside, visitTraversalPredicate_regex, visitTraversalPredicate_startingWith, visitTraversalPredicate_within, visitTraversalPredicate_without, visitTraversalSackMethod, visitTraversalSackMethodArgument, visitTraversalScope, visitTraversalScopeArgument, visitTraversalSelfMethod, visitTraversalSelfMethod_none, visitTraversalSource, visitTraversalSourceSelfMethod, visitTraversalSourceSelfMethod_with, visitTraversalSourceSelfMethod_withBulk, visitTraversalSourceSelfMethod_withPath, visitTraversalSourceSelfMethod_withSack, visitTraversalSourceSelfMethod_withSideEffect, visitTraversalSourceSelfMethod_withStrategies, visitTraversalSourceSpawnMethod, visitTraversalSourceSpawnMethod_addE, visitTraversalSourceSpawnMethod_addV, visitTraversalSourceSpawnMethod_call_empty, visitTraversalSourceSpawnMethod_call_string, visitTraversalSourceSpawnMethod_call_string_map, visitTraversalSourceSpawnMethod_call_string_map_traversal, visitTraversalSourceSpawnMethod_call_string_traversal, visitTraversalSourceSpawnMethod_E, visitTraversalSourceSpawnMethod_inject, visitTraversalSourceSpawnMethod_io, visitTraversalSourceSpawnMethod_mergeE_Map, visitTraversalSourceSpawnMethod_mergeE_Traversal, visitTraversalSourceSpawnMethod_mergeV_Map, visitTraversalSourceSpawnMethod_mergeV_Traversal, visitTraversalSourceSpawnMethod_union, visitTraversalSourceSpawnMethod_V, visitTraversalStrategyArgs_EdgeLabelVerificationStrategy, visitTraversalStrategyArgs_PartitionStrategy, visitTraversalStrategyArgs_ProductiveByStrategy, visitTraversalStrategyArgs_ReservedKeysVerificationStrategy, visitTraversalStrategyArgs_SubgraphStrategy, visitTraversalStrategyExpr, visitTraversalStrategyList, visitTraversalTerminalMethod, visitTraversalTerminalMethod_explain, visitTraversalTerminalMethod_hasNext, visitTraversalTerminalMethod_iterate, visitTraversalTerminalMethod_next, visitTraversalTerminalMethod_toBulkSet, visitTraversalTerminalMethod_toList, visitTraversalTerminalMethod_toSet, visitTraversalTerminalMethod_tryNext, visitTraversalTokenArgument, visitVariable, visitWithOptionKeys, visitWithOptionsConstants_all, visitWithOptionsConstants_ids, visitWithOptionsConstants_indexer, visitWithOptionsConstants_keys, visitWithOptionsConstants_labels, visitWithOptionsConstants_list, visitWithOptionsConstants_map, visitWithOptionsConstants_none, visitWithOptionsConstants_tokens, visitWithOptionsConstants_values, visitWithOptionsStringConstant, visitWithOptionsValues
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
TOTAL_INTEGER_RANGE_RESULT_COUNT_LIMIT
public static final int TOTAL_INTEGER_RANGE_RESULT_COUNT_LIMIT
Limit for integer range result count. It is used to avoid OOM in JVM.- See Also:
- Constant Field Values
-
antlr
protected final GremlinAntlrToJava antlr
-
-
Constructor Detail
-
GenericLiteralVisitor
public GenericLiteralVisitor(GremlinAntlrToJava antlr)
-
-
Method Detail
-
parseIntegral
public Number parseIntegral(GremlinParser.IntegerLiteralContext integerLiteral)
Parse integral literal context and return an integral type number.
-
parseFloating
public Number parseFloating(GremlinParser.FloatLiteralContext floatLiteral)
Parse floating literal context and return a floating type number.
-
parseString
public String parseString(GremlinParser.StringLiteralContext stringLiteral)
Parse a string based literal context and return the string.
-
parseString
public String parseString(GremlinParser.StringNullableLiteralContext stringLiteral)
Parse a string based literal context and return the string.
-
parseDate
public Date parseDate(GremlinParser.DateLiteralContext dateLiteral)
Parse a Date based literal context and return the Date.
-
parseMap
public Map parseMap(GremlinParser.GenericLiteralMapContext mapLiteral)
Parse a map literal context and return the map literal
-
parseBoolean
public boolean parseBoolean(GremlinParser.BooleanLiteralContext booleanLiteral)
Parse a boolean literal context and return the boolean literal
-
parseStringList
public String[] parseStringList(GremlinParser.StringLiteralListContext stringLiteralList)
Parse a String literal list context and return a string array
-
parseObjectList
public Object[] parseObjectList(GremlinParser.GenericLiteralListContext objectLiteralList)
Parse a generic literal list, and return an object array
-
parseObjectVarargs
public Object[] parseObjectVarargs(GremlinParser.GenericLiteralVarargsContext varargsContext)
Parse a generic literal varargs, and return an object array
-
parseStringVarargs
public String[] parseStringVarargs(GremlinParser.StringLiteralVarargsContext varargsContext)
Parse a string literal varargs, and return an string array
-
parseTraversalStrategyList
public static TraversalStrategy[] parseTraversalStrategyList(GremlinParser.TraversalStrategyListContext traversalStrategyListContext, DefaultGremlinBaseVisitor<TraversalStrategy> traversalStrategyVisitor)
Parse a TraversalStrategy literal list context and return a string array
-
visitGenericLiteralList
public Object visitGenericLiteralList(GremlinParser.GenericLiteralListContext ctx)
Visit a parse tree produced byGremlinParser.genericLiteralList()
.- Specified by:
visitGenericLiteralList
in interfaceGremlinVisitor<Object>
- Overrides:
visitGenericLiteralList
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGenericLiteralExpr
public Object visitGenericLiteralExpr(GremlinParser.GenericLiteralExprContext ctx)
Visit a parse tree produced byGremlinParser.genericLiteralExpr()
.- Specified by:
visitGenericLiteralExpr
in interfaceGremlinVisitor<Object>
- Overrides:
visitGenericLiteralExpr
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGenericLiteral
public Object visitGenericLiteral(GremlinParser.GenericLiteralContext ctx)
Visit a parse tree produced byGremlinParser.genericLiteral()
.- Specified by:
visitGenericLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitGenericLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGenericLiteralMap
public Object visitGenericLiteralMap(GremlinParser.GenericLiteralMapContext ctx)
Visit a parse tree produced byGremlinParser.genericLiteralMap()
.- Specified by:
visitGenericLiteralMap
in interfaceGremlinVisitor<Object>
- Overrides:
visitGenericLiteralMap
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNestedTraversal
public Object visitNestedTraversal(GremlinParser.NestedTraversalContext ctx)
Visit a parse tree produced byGremlinParser.nestedTraversal()
.- Specified by:
visitNestedTraversal
in interfaceGremlinVisitor<Object>
- Overrides:
visitNestedTraversal
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStructureVertex
public Object visitStructureVertex(GremlinParser.StructureVertexContext ctx)
Description copied from class:DefaultGremlinBaseVisitor
Visit a parse tree produced byGremlinParser.structureVertex()
.- Specified by:
visitStructureVertex
in interfaceGremlinVisitor<Object>
- Overrides:
visitStructureVertex
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTerminatedTraversal
public Object visitTerminatedTraversal(GremlinParser.TerminatedTraversalContext ctx)
Visit a parse tree produced byGremlinParser.terminatedTraversal()
.- Specified by:
visitTerminatedTraversal
in interfaceGremlinVisitor<Object>
- Overrides:
visitTerminatedTraversal
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
public Object visitIntegerLiteral(GremlinParser.IntegerLiteralContext ctx)
Visit a parse tree produced byGremlinParser.integerLiteral()
.- Specified by:
visitIntegerLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitIntegerLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
public Object visitFloatLiteral(GremlinParser.FloatLiteralContext ctx)
Visit a parse tree produced byGremlinParser.floatLiteral()
.- Specified by:
visitFloatLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitFloatLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
public Object visitBooleanLiteral(GremlinParser.BooleanLiteralContext ctx)
Visit a parse tree produced byGremlinParser.booleanLiteral()
.- Specified by:
visitBooleanLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitBooleanLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDateLiteral
public Object visitDateLiteral(GremlinParser.DateLiteralContext ctx)
Visit a parse tree produced byGremlinParser.dateLiteral()
.- Specified by:
visitDateLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitDateLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNumericLiteral
public Object visitNumericLiteral(GremlinParser.NumericLiteralContext ctx)
Visit a parse tree produced byGremlinParser.numericLiteral()
.- Specified by:
visitNumericLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitNumericLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
public Object visitStringLiteral(GremlinParser.StringLiteralContext ctx)
Visit a parse tree produced byGremlinParser.stringLiteral()
.- Specified by:
visitStringLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitStringLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTraversalToken
public Object visitTraversalToken(GremlinParser.TraversalTokenContext ctx)
Visit a parse tree produced byGremlinParser.traversalToken()
.- Specified by:
visitTraversalToken
in interfaceGremlinVisitor<Object>
- Overrides:
visitTraversalToken
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTraversalCardinality
public Object visitTraversalCardinality(GremlinParser.TraversalCardinalityContext ctx)
Visit a parse tree produced byGremlinParser.traversalCardinality()
.- Specified by:
visitTraversalCardinality
in interfaceGremlinVisitor<Object>
- Overrides:
visitTraversalCardinality
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTraversalDirection
public Object visitTraversalDirection(GremlinParser.TraversalDirectionContext ctx)
Visit a parse tree produced byGremlinParser.traversalDirection()
.- Specified by:
visitTraversalDirection
in interfaceGremlinVisitor<Object>
- Overrides:
visitTraversalDirection
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTraversalMerge
public Object visitTraversalMerge(GremlinParser.TraversalMergeContext ctx)
Visit a parse tree produced byGremlinParser.traversalMerge()
.- Specified by:
visitTraversalMerge
in interfaceGremlinVisitor<Object>
- Overrides:
visitTraversalMerge
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTraversalPick
public Object visitTraversalPick(GremlinParser.TraversalPickContext ctx)
Visit a parse tree produced byGremlinParser.traversalPick()
.- Specified by:
visitTraversalPick
in interfaceGremlinVisitor<Object>
- Overrides:
visitTraversalPick
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTraversalStrategy
public Object visitTraversalStrategy(GremlinParser.TraversalStrategyContext ctx)
Description copied from class:DefaultGremlinBaseVisitor
Visit a parse tree produced byGremlinParser.traversalStrategy()
.- Specified by:
visitTraversalStrategy
in interfaceGremlinVisitor<Object>
- Overrides:
visitTraversalStrategy
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGenericLiteralRange
public Object visitGenericLiteralRange(GremlinParser.GenericLiteralRangeContext ctx)
Groovy range operator syntax is defined in http://groovy-lang.org/operators.html#_range_operator Visit a parse tree produced byGremlinParser.genericLiteralRange()
.- Specified by:
visitGenericLiteralRange
in interfaceGremlinVisitor<Object>
- Overrides:
visitGenericLiteralRange
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
public Object visitNullLiteral(GremlinParser.NullLiteralContext ctx)
Visit a parse tree produced byGremlinParser.nullLiteral()
.- Specified by:
visitNullLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitNullLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNanLiteral
public Object visitNanLiteral(GremlinParser.NanLiteralContext ctx)
Visit a parse tree produced byGremlinParser.nanLiteral()
.- Specified by:
visitNanLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitNanLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInfLiteral
public Object visitInfLiteral(GremlinParser.InfLiteralContext ctx)
Visit a parse tree produced byGremlinParser.infLiteral()
.- Specified by:
visitInfLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitInfLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGenericLiteralCollection
public Object visitGenericLiteralCollection(GremlinParser.GenericLiteralCollectionContext ctx)
Visit a parse tree produced byGremlinParser.genericLiteralCollection()
. Generic literal collection returns a list ofObject
- Specified by:
visitGenericLiteralCollection
in interfaceGremlinVisitor<Object>
- Overrides:
visitGenericLiteralCollection
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringLiteralList
public Object visitStringLiteralList(GremlinParser.StringLiteralListContext ctx)
Description copied from class:DefaultGremlinBaseVisitor
Visit a parse tree produced byGremlinParser.stringLiteralList()
.- Specified by:
visitStringLiteralList
in interfaceGremlinVisitor<Object>
- Overrides:
visitStringLiteralList
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringNullableLiteral
public Object visitStringNullableLiteral(GremlinParser.StringNullableLiteralContext ctx)
Description copied from class:DefaultGremlinBaseVisitor
Visit a parse tree produced byGremlinParser.stringNullableLiteral()
.- Specified by:
visitStringNullableLiteral
in interfaceGremlinVisitor<Object>
- Overrides:
visitStringNullableLiteral
in classDefaultGremlinBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-