Class ExpressionsVisitor
- All Implemented Interfaces:
MappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>,Serializable,org.antlr.v4.runtime.tree.ParseTreeVisitor<com.fasterxml.jackson.databind.JsonNode>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis is how we indicate to upstream operators that we are currently inside a selection statement. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpressionsVisitor(com.fasterxml.jackson.databind.JsonNode rootContext, FrameEnvironment environment) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcastString(com.fasterxml.jackson.databind.JsonNode node, boolean prettify) Encodes JSONata string casting semantics.static com.fasterxml.jackson.databind.node.ArrayNodeensureArray(com.fasterxml.jackson.databind.JsonNode input) If input is an array, return it.ensureSelectorNodeArray(com.fasterxml.jackson.databind.JsonNode input) If input is an array, return it.static com.fasterxml.jackson.databind.node.ArrayNodeflatten(com.fasterxml.jackson.databind.JsonNode arg, com.fasterxml.jackson.databind.node.ArrayNode flattened) Deque<com.fasterxml.jackson.databind.JsonNode>getDeclaredFunction(String fctName) protected FrameEnvironmentgetJsonataFunction(String fctName) intgetValue(org.antlr.v4.runtime.tree.ParseTree node) com.fasterxml.jackson.databind.JsonNodegetVariable(String varName) protected voidprocessArrayContent(MappingExpressionParser.ExprOrSeqContext expr, com.fasterxml.jackson.databind.node.ArrayNode output) voidresetOldEnvironment(FrameEnvironment oldEnvironment) voidsetDeclaredFunction(String fctName, DeclaredFunction fctValue) protected voidsetEnvironment(FrameEnvironment environment) voidsetJsonataFunction(String fctName, FunctionBase fctValue) protected voidsetRootContext(com.fasterxml.jackson.databind.JsonNode rootContext) voidsetValue(org.antlr.v4.runtime.tree.ParseTree node, int value) voidsetVariable(String varName, com.fasterxml.jackson.databind.JsonNode varValue) voidtimeboxExpression(long timeoutMS, int maxDepth) static com.fasterxml.jackson.databind.JsonNodeunwrapArray(com.fasterxml.jackson.databind.JsonNode input) If input is a singleton array, return its single element - otherwise return the input as is.com.fasterxml.jackson.databind.JsonNodevisit(org.antlr.v4.runtime.tree.ParseTree tree) com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theaddsub_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thearraylabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thearray_constructorlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thebooleanlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thecomp_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theconcat_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theconditionallabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thecontext_reflabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thedescendantlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced byMappingExpressionParser.exprList().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thefct_chainlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thefield_valueslabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced byMappingExpressionParser.fieldList().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thefunction_calllabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thefunction_decllabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thefunction_execlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theidlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thelogandlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thelogorlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by themembershiplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by themuldiv_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thenulllabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thenumberlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theobjectlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theobject_constructorlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theop_orderbylabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theparenslabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theparent_pathlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theparent_path_solitarylabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thepathlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theregular_expressionlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitRegular_expression_caseinsensitive(MappingExpressionParser.Regular_expression_caseinsensitiveContext ctx) Visit a parse tree produced by theregular_expression_caseinsensitivelabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theregular_expression_multilinelabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theroot_pathlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced byMappingExpressionParser.seq().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thestringlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theto_arraylabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitTree(org.antlr.v4.runtime.tree.ParseTree tree) com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by theunary_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thevar_assignlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thevar_recalllabeled alternative inMappingExpressionParser.expr().Methods inherited from class com.api.jsonata4java.expressions.generated.MappingExpressionBaseVisitor
visitEmptyValues, visitExpr_to_eof, visitExprOrSeq, visitExprOrSeqList, visitExprValues, visitRegexPattern, visitRegularExpression, visitRegularExpressionCaseInsensitive, visitRegularExpressionMultiline, visitVarListMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
ERR_MSG_INVALID_PATH_ENTRY
-
ERR_NEGATE_NON_NUMERIC
- See Also:
-
ERR_SEQ_LHS_INTEGER
- See Also:
-
ERR_SEQ_RHS_INTEGER
- See Also:
-
ERR_TOO_BIG
- See Also:
-
-
Constructor Details
-
ExpressionsVisitor
public ExpressionsVisitor() -
ExpressionsVisitor
public ExpressionsVisitor(com.fasterxml.jackson.databind.JsonNode rootContext, FrameEnvironment environment) throws EvaluateRuntimeException - Throws:
EvaluateRuntimeException
-
-
Method Details
-
castString
public static String castString(com.fasterxml.jackson.databind.JsonNode node, boolean prettify) throws EvaluateRuntimeException Encodes JSONata string casting semantics. See http://docs.jsonata.org/string-functions.html: $string(arg) Casts the arg parameter to a string using the following casting rules Strings are unchanged Functions are converted to an empty string Numeric infinity and NaN throw an error because they cannot be represented as a JSON number All other values are converted to a JSON string using the JSON.stringify function If arg is not specified (i.e. this function is invoked with no arguments), then the context value is used as the value of arg. Examples $string(5) == "5" [1..5].$string() == ["1", "2", "3", "4", "5"]- Parameters:
node- JsonNode whose content is to be cast as a Stringprettify- Whether the objects or arrays should be pretty printed- Returns:
- the String representation of the supplied node
- Throws:
EvaluateRuntimeException- if json serialization fails
-
ensureArray
public static com.fasterxml.jackson.databind.node.ArrayNode ensureArray(com.fasterxml.jackson.databind.JsonNode input) If input is an array, return it. If input is not an array, wrap it in a singleton array and return it.- Parameters:
input-- Returns:
- wrapped content ensured to be an array
-
ensureSelectorNodeArray
public static ExpressionsVisitor.SelectorArrayNode ensureSelectorNodeArray(com.fasterxml.jackson.databind.JsonNode input) If input is an array, return it. If input is not an array, wrap it in a singleton array and return it.- Parameters:
input-- Returns:
- wrapped content ensured to be an array
-
flatten
public static com.fasterxml.jackson.databind.node.ArrayNode flatten(com.fasterxml.jackson.databind.JsonNode arg, com.fasterxml.jackson.databind.node.ArrayNode flattened) -
unwrapArray
public static com.fasterxml.jackson.databind.JsonNode unwrapArray(com.fasterxml.jackson.databind.JsonNode input) If input is a singleton array, return its single element - otherwise return the input as is.- Parameters:
input-- Returns:
- single element if input is a singleton array or the input as presented
-
setNewEnvironment
-
resetOldEnvironment
-
getContextStack
-
getDeclaredFunction
-
getEnvironment
-
getJsonataFunction
-
getValue
public int getValue(org.antlr.v4.runtime.tree.ParseTree node) -
getVariable
-
processArrayContent
protected void processArrayContent(MappingExpressionParser.ExprOrSeqContext expr, com.fasterxml.jackson.databind.node.ArrayNode output) -
setDeclaredFunction
-
setEnvironment
-
setJsonataFunction
-
setRootContext
protected void setRootContext(com.fasterxml.jackson.databind.JsonNode rootContext) -
setValue
public void setValue(org.antlr.v4.runtime.tree.ParseTree node, int value) -
setVariable
public void setVariable(String varName, com.fasterxml.jackson.databind.JsonNode varValue) throws EvaluateRuntimeException - Throws:
EvaluateRuntimeException
-
timeboxExpression
public void timeboxExpression(long timeoutMS, int maxDepth) -
visit
public com.fasterxml.jackson.databind.JsonNode visit(org.antlr.v4.runtime.tree.ParseTree tree) - Specified by:
visitin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitin classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<com.fasterxml.jackson.databind.JsonNode>
-
visitAddsub_op
public com.fasterxml.jackson.databind.JsonNode visitAddsub_op(MappingExpressionParser.Addsub_opContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theaddsub_oplabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAddsub_opin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitAddsub_opin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArray
Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thearraylabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitArrayin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArray_constructor
public com.fasterxml.jackson.databind.JsonNode visitArray_constructor(MappingExpressionParser.Array_constructorContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thearray_constructorlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArray_constructorin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitArray_constructorin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolean
public com.fasterxml.jackson.databind.JsonNode visitBoolean(MappingExpressionParser.BooleanContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thebooleanlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleanin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitBooleanin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComp_op
public com.fasterxml.jackson.databind.JsonNode visitComp_op(MappingExpressionParser.Comp_opContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thecomp_oplabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitComp_opin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitComp_opin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConcat_op
public com.fasterxml.jackson.databind.JsonNode visitConcat_op(MappingExpressionParser.Concat_opContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theconcat_oplabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConcat_opin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitConcat_opin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditional
public com.fasterxml.jackson.databind.JsonNode visitConditional(MappingExpressionParser.ConditionalContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theconditionallabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitConditionalin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContext_ref
public com.fasterxml.jackson.databind.JsonNode visitContext_ref(MappingExpressionParser.Context_refContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thecontext_reflabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContext_refin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitContext_refin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDescendant
public com.fasterxml.jackson.databind.JsonNode visitDescendant(MappingExpressionParser.DescendantContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thedescendantlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDescendantin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitDescendantin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFct_chain
public com.fasterxml.jackson.databind.JsonNode visitFct_chain(MappingExpressionParser.Fct_chainContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thefct_chainlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFct_chainin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitFct_chainin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitField_values
public com.fasterxml.jackson.databind.JsonNode visitField_values(MappingExpressionParser.Field_valuesContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thefield_valueslabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitField_valuesin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitField_valuesin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldList
public com.fasterxml.jackson.databind.JsonNode visitFieldList(MappingExpressionParser.FieldListContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced byMappingExpressionParser.fieldList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldListin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitFieldListin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction_call
public com.fasterxml.jackson.databind.JsonNode visitFunction_call(MappingExpressionParser.Function_callContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thefunction_calllabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunction_callin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitFunction_callin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction_decl
public com.fasterxml.jackson.databind.JsonNode visitFunction_decl(MappingExpressionParser.Function_declContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thefunction_decllabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunction_declin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitFunction_declin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction_exec
public com.fasterxml.jackson.databind.JsonNode visitFunction_exec(MappingExpressionParser.Function_execContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thefunction_execlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunction_execin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitFunction_execin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitId
Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theidlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitIdin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogand
public com.fasterxml.jackson.databind.JsonNode visitLogand(MappingExpressionParser.LogandContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thelogandlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogandin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitLogandin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogor
Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thelogorlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogorin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitLogorin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMembership
public com.fasterxml.jackson.databind.JsonNode visitMembership(MappingExpressionParser.MembershipContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by themembershiplabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMembershipin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitMembershipin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMuldiv_op
public com.fasterxml.jackson.databind.JsonNode visitMuldiv_op(MappingExpressionParser.Muldiv_opContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by themuldiv_oplabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMuldiv_opin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitMuldiv_opin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNull
Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thenulllabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitNullin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumber
public com.fasterxml.jackson.databind.JsonNode visitNumber(MappingExpressionParser.NumberContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thenumberlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumberin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitNumberin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprList
public com.fasterxml.jackson.databind.JsonNode visitExprList(MappingExpressionParser.ExprListContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced byMappingExpressionParser.exprList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprListin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitExprListin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObject
public com.fasterxml.jackson.databind.JsonNode visitObject(MappingExpressionParser.ObjectContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theobjectlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitObjectin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObject_constructor
public com.fasterxml.jackson.databind.JsonNode visitObject_constructor(MappingExpressionParser.Object_constructorContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theobject_constructorlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObject_constructorin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitObject_constructorin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParens
public com.fasterxml.jackson.databind.JsonNode visitParens(MappingExpressionParser.ParensContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theparenslabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParensin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitParensin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPath
Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thepathlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitPathin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParent_path
public com.fasterxml.jackson.databind.JsonNode visitParent_path(MappingExpressionParser.Parent_pathContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theparent_pathlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParent_pathin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitParent_pathin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParent_path_solitary
public com.fasterxml.jackson.databind.JsonNode visitParent_path_solitary(MappingExpressionParser.Parent_path_solitaryContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theparent_path_solitarylabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParent_path_solitaryin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitParent_path_solitaryin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRoot_path
public com.fasterxml.jackson.databind.JsonNode visitRoot_path(MappingExpressionParser.Root_pathContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theroot_pathlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRoot_pathin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitRoot_pathin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSeq
Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced byMappingExpressionParser.seq().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSeqin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitSeqin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString
public com.fasterxml.jackson.databind.JsonNode visitString(MappingExpressionParser.StringContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thestringlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitStringin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegular_expression
public com.fasterxml.jackson.databind.JsonNode visitRegular_expression(MappingExpressionParser.Regular_expressionContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theregular_expressionlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRegular_expressionin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitRegular_expressionin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegular_expression_caseinsensitive
public com.fasterxml.jackson.databind.JsonNode visitRegular_expression_caseinsensitive(MappingExpressionParser.Regular_expression_caseinsensitiveContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theregular_expression_caseinsensitivelabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRegular_expression_caseinsensitivein interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitRegular_expression_caseinsensitivein classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegular_expression_multiline
public com.fasterxml.jackson.databind.JsonNode visitRegular_expression_multiline(MappingExpressionParser.Regular_expression_multilineContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theregular_expression_multilinelabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRegular_expression_multilinein interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitRegular_expression_multilinein classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOp_orderby
public com.fasterxml.jackson.databind.JsonNode visitOp_orderby(MappingExpressionParser.Op_orderbyContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theop_orderbylabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOp_orderbyin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitOp_orderbyin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTo_array
public com.fasterxml.jackson.databind.JsonNode visitTo_array(MappingExpressionParser.To_arrayContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theto_arraylabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTo_arrayin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitTo_arrayin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTree
public com.fasterxml.jackson.databind.JsonNode visitTree(org.antlr.v4.runtime.tree.ParseTree tree) -
visitUnary_op
public com.fasterxml.jackson.databind.JsonNode visitUnary_op(MappingExpressionParser.Unary_opContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by theunary_oplabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnary_opin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitUnary_opin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVar_assign
public com.fasterxml.jackson.databind.JsonNode visitVar_assign(MappingExpressionParser.Var_assignContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thevar_assignlabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVar_assignin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitVar_assignin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVar_recall
public com.fasterxml.jackson.databind.JsonNode visitVar_recall(MappingExpressionParser.Var_recallContext ctx) Description copied from class:MappingExpressionBaseVisitorVisit a parse tree produced by thevar_recalllabeled alternative inMappingExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVar_recallin interfaceMappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitVar_recallin classMappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-