Class PathExpressionVisitor
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.api.jsonata4java.expressions.path.generated.PathExpressionParserBaseVisitor<com.fasterxml.jackson.databind.JsonNode>
com.api.jsonata4java.expressions.path.PathExpressionVisitor
- All Implemented Interfaces:
PathExpressionParserVisitor<com.fasterxml.jackson.databind.JsonNode>,org.antlr.v4.runtime.tree.ParseTreeVisitor<com.fasterxml.jackson.databind.JsonNode>
- Direct Known Subclasses:
PathExpressionVisitor.Getter,PathExpressionVisitor.Setter
public abstract class PathExpressionVisitor
extends PathExpressionParserBaseVisitor<com.fasterxml.jackson.databind.JsonNode>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPathExpressionVisitor(com.fasterxml.jackson.databind.JsonNode json, Integer indexVarValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringERR_ARR_INDEX_OUT_OF_BOUNDS(String fieldName, int index) static final StringERR_FIELD_ON_NON_OBJECT(String fieldName) static final StringERR_INDEX_ON_NON_ARRAY(String fieldName, int index) static voidprotected abstract com.fasterxml.jackson.databind.JsonNodereachedArrayIndex(com.fasterxml.jackson.databind.node.ArrayNode array, int index) protected abstract com.fasterxml.jackson.databind.JsonNodereachedObjectField(com.fasterxml.jackson.databind.node.ObjectNode object, String fieldName) com.fasterxml.jackson.databind.JsonNodeVisit a parse tree produced by thepathlabeled alternative inPathExpressionParser.expr().Methods inherited from class com.api.jsonata4java.expressions.path.generated.PathExpressionParserBaseVisitor
visitArray_index, visitIdMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, 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
visit, visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
ERR_INDEX_VAR_UNSET
- See Also:
-
-
Constructor Details
-
PathExpressionVisitor
-
-
Method Details
-
ERR_FIELD_ON_NON_OBJECT
-
ERR_INDEX_ON_NON_ARRAY
-
ERR_ARR_INDEX_OUT_OF_BOUNDS
-
visitPath
Description copied from class:PathExpressionParserBaseVisitorVisit a parse tree produced by thepathlabeled alternative inPathExpressionParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathin interfacePathExpressionParserVisitor<com.fasterxml.jackson.databind.JsonNode>- Overrides:
visitPathin classPathExpressionParserBaseVisitor<com.fasterxml.jackson.databind.JsonNode>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
reachedObjectField
protected abstract com.fasterxml.jackson.databind.JsonNode reachedObjectField(com.fasterxml.jackson.databind.node.ObjectNode object, String fieldName) -
reachedArrayIndex
protected abstract com.fasterxml.jackson.databind.JsonNode reachedArrayIndex(com.fasterxml.jackson.databind.node.ArrayNode array, int index) -
main
-