Class ExpressionsVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- com.api.jsonata4java.expressions.generated.MappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode>
-
- com.api.jsonata4java.expressions.ExpressionsVisitor
-
- All Implemented Interfaces:
MappingExpressionVisitor<com.fasterxml.jackson.databind.JsonNode>,Serializable,org.antlr.v4.runtime.tree.ParseTreeVisitor<com.fasterxml.jackson.databind.JsonNode>
public class ExpressionsVisitor extends MappingExpressionBaseVisitor<com.fasterxml.jackson.databind.JsonNode> implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpressionsVisitor.SelectorArrayNodeThis is how we indicate to upstream operators that we are currently inside a selection statement.
-
Field Summary
Fields Modifier and Type Field Description static StringERR_MSG_INVALID_PATH_ENTRYstatic StringERR_NEGATE_NON_NUMERICstatic StringERR_SEQ_LHS_INTEGERstatic StringERR_SEQ_RHS_INTEGERstatic StringERR_TOO_BIG
-
Constructor Summary
Constructors Constructor Description ExpressionsVisitor()ExpressionsVisitor(com.fasterxml.jackson.databind.JsonNode rootContext, FrameEnvironment environment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.static ExpressionsVisitor.SelectorArrayNodeensureSelectorNodeArray(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>getContextStack()DeclaredFunctiongetDeclaredFunction(String fctName)protected FrameEnvironmentgetEnvironment()FunctionBasegetJsonataFunction(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)FrameEnvironmentsetNewEnvironment()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.JsonNodevisitAddsub_op(MappingExpressionParser.Addsub_opContext ctx)Visit a parse tree produced by theaddsub_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitArray(MappingExpressionParser.ArrayContext ctx)Visit a parse tree produced by thearraylabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitArray_constructor(MappingExpressionParser.Array_constructorContext ctx)Visit a parse tree produced by thearray_constructorlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitBoolean(MappingExpressionParser.BooleanContext ctx)Visit a parse tree produced by thebooleanlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitComp_op(MappingExpressionParser.Comp_opContext ctx)Visit a parse tree produced by thecomp_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitConcat_op(MappingExpressionParser.Concat_opContext ctx)Visit a parse tree produced by theconcat_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitConditional(MappingExpressionParser.ConditionalContext ctx)Visit a parse tree produced by theconditionallabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitContext_ref(MappingExpressionParser.Context_refContext ctx)Visit a parse tree produced by thecontext_reflabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitDescendant(MappingExpressionParser.DescendantContext ctx)Visit a parse tree produced by thedescendantlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitExprList(MappingExpressionParser.ExprListContext ctx)Visit a parse tree produced byMappingExpressionParser.exprList().com.fasterxml.jackson.databind.JsonNodevisitFct_chain(MappingExpressionParser.Fct_chainContext ctx)Visit a parse tree produced by thefct_chainlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitField_values(MappingExpressionParser.Field_valuesContext ctx)Visit a parse tree produced by thefield_valueslabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitFieldList(MappingExpressionParser.FieldListContext ctx)Visit a parse tree produced byMappingExpressionParser.fieldList().com.fasterxml.jackson.databind.JsonNodevisitFunction_call(MappingExpressionParser.Function_callContext ctx)Visit a parse tree produced by thefunction_calllabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitFunction_decl(MappingExpressionParser.Function_declContext ctx)Visit a parse tree produced by thefunction_decllabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitFunction_exec(MappingExpressionParser.Function_execContext ctx)Visit a parse tree produced by thefunction_execlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitId(MappingExpressionParser.IdContext ctx)Visit a parse tree produced by theidlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitLogand(MappingExpressionParser.LogandContext ctx)Visit a parse tree produced by thelogandlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitLogor(MappingExpressionParser.LogorContext ctx)Visit a parse tree produced by thelogorlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitMembership(MappingExpressionParser.MembershipContext ctx)Visit a parse tree produced by themembershiplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitMuldiv_op(MappingExpressionParser.Muldiv_opContext ctx)Visit a parse tree produced by themuldiv_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitNull(MappingExpressionParser.NullContext ctx)Visit a parse tree produced by thenulllabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitNumber(MappingExpressionParser.NumberContext ctx)Visit a parse tree produced by thenumberlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitObject(MappingExpressionParser.ObjectContext ctx)Visit a parse tree produced by theobjectlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitObject_constructor(MappingExpressionParser.Object_constructorContext ctx)Visit a parse tree produced by theobject_constructorlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitParens(MappingExpressionParser.ParensContext ctx)Visit a parse tree produced by theparenslabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitParent_path(MappingExpressionParser.Parent_pathContext ctx)Visit a parse tree produced by theparent_pathlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitParent_path_solitary(MappingExpressionParser.Parent_path_solitaryContext ctx)Visit a parse tree produced by theparent_path_solitarylabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitPath(MappingExpressionParser.PathContext ctx)Visit a parse tree produced by thepathlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitRegular_expression(MappingExpressionParser.Regular_expressionContext ctx)Visit 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.JsonNodevisitRegular_expression_multiline(MappingExpressionParser.Regular_expression_multilineContext ctx)Visit a parse tree produced by theregular_expression_multilinelabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitRoot_path(MappingExpressionParser.Root_pathContext ctx)Visit a parse tree produced by theroot_pathlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitSeq(MappingExpressionParser.SeqContext ctx)Visit a parse tree produced byMappingExpressionParser.seq().com.fasterxml.jackson.databind.JsonNodevisitString(MappingExpressionParser.StringContext ctx)Visit a parse tree produced by thestringlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitTo_array(MappingExpressionParser.To_arrayContext ctx)Visit 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.JsonNodevisitUnary_op(MappingExpressionParser.Unary_opContext ctx)Visit a parse tree produced by theunary_oplabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitVar_assign(MappingExpressionParser.Var_assignContext ctx)Visit a parse tree produced by thevar_assignlabeled alternative inMappingExpressionParser.expr().com.fasterxml.jackson.databind.JsonNodevisitVar_recall(MappingExpressionParser.Var_recallContext ctx)Visit 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, visitVarList
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
ERR_MSG_INVALID_PATH_ENTRY
public static final String ERR_MSG_INVALID_PATH_ENTRY
-
ERR_NEGATE_NON_NUMERIC
public static final String ERR_NEGATE_NON_NUMERIC
- See Also:
- Constant Field Values
-
ERR_SEQ_LHS_INTEGER
public static final String ERR_SEQ_LHS_INTEGER
- See Also:
- Constant Field Values
-
ERR_SEQ_RHS_INTEGER
public static final String ERR_SEQ_RHS_INTEGER
- See Also:
- Constant Field Values
-
ERR_TOO_BIG
public static final String ERR_TOO_BIG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExpressionsVisitor
public ExpressionsVisitor()
-
ExpressionsVisitor
public ExpressionsVisitor(com.fasterxml.jackson.databind.JsonNode rootContext, FrameEnvironment environment) throws EvaluateRuntimeException- Throws:
EvaluateRuntimeException
-
-
Method Detail
-
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
public FrameEnvironment setNewEnvironment()
-
resetOldEnvironment
public void resetOldEnvironment(FrameEnvironment oldEnvironment)
-
getContextStack
public Deque<com.fasterxml.jackson.databind.JsonNode> getContextStack()
-
getDeclaredFunction
public DeclaredFunction getDeclaredFunction(String fctName)
-
getEnvironment
protected FrameEnvironment getEnvironment()
-
getJsonataFunction
public FunctionBase getJsonataFunction(String fctName)
-
getValue
public int getValue(org.antlr.v4.runtime.tree.ParseTree node)
-
getVariable
public com.fasterxml.jackson.databind.JsonNode getVariable(String varName)
-
processArrayContent
protected void processArrayContent(MappingExpressionParser.ExprOrSeqContext expr, com.fasterxml.jackson.databind.node.ArrayNode output)
-
setDeclaredFunction
public void setDeclaredFunction(String fctName, DeclaredFunction fctValue)
-
setEnvironment
protected void setEnvironment(FrameEnvironment environment)
-
setJsonataFunction
public void setJsonataFunction(String fctName, FunctionBase fctValue)
-
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
public com.fasterxml.jackson.databind.JsonNode visitArray(MappingExpressionParser.ArrayContext ctx)
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
public com.fasterxml.jackson.databind.JsonNode visitId(MappingExpressionParser.IdContext ctx)
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
public com.fasterxml.jackson.databind.JsonNode visitLogor(MappingExpressionParser.LogorContext ctx)
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
public com.fasterxml.jackson.databind.JsonNode visitNull(MappingExpressionParser.NullContext ctx)
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
public com.fasterxml.jackson.databind.JsonNode visitPath(MappingExpressionParser.PathContext ctx)
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
public com.fasterxml.jackson.databind.JsonNode visitSeq(MappingExpressionParser.SeqContext ctx)
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
-
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
-
-