Class FHIRPathBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.linuxforhealth.fhir.path.FHIRPathBaseVisitor<T>
-
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
,FHIRPathVisitor<T>
- Direct Known Subclasses:
FHIRPathEvaluator.EvaluatingVisitor
,PrintingVisitor
public class FHIRPathBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements FHIRPathVisitor<T>
This class provides an empty implementation ofFHIRPathVisitor
, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description FHIRPathBaseVisitor()
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitIndexerExpression
public T visitIndexerExpression(FHIRPathParser.IndexerExpressionContext ctx)
Visit a parse tree produced by theindexerExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIndexerExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPolarityExpression
public T visitPolarityExpression(FHIRPathParser.PolarityExpressionContext ctx)
Visit a parse tree produced by thepolarityExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPolarityExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpression
public T visitAdditiveExpression(FHIRPathParser.AdditiveExpressionContext ctx)
Visit a parse tree produced by theadditiveExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAdditiveExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpression
public T visitMultiplicativeExpression(FHIRPathParser.MultiplicativeExpressionContext ctx)
Visit a parse tree produced by themultiplicativeExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiplicativeExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnionExpression
public T visitUnionExpression(FHIRPathParser.UnionExpressionContext ctx)
Visit a parse tree produced by theunionExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnionExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitOrExpression
public T visitOrExpression(FHIRPathParser.OrExpressionContext ctx)
Visit a parse tree produced by theorExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitOrExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAndExpression
public T visitAndExpression(FHIRPathParser.AndExpressionContext ctx)
Visit a parse tree produced by theandExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAndExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMembershipExpression
public T visitMembershipExpression(FHIRPathParser.MembershipExpressionContext ctx)
Visit a parse tree produced by themembershipExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMembershipExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInequalityExpression
public T visitInequalityExpression(FHIRPathParser.InequalityExpressionContext ctx)
Visit a parse tree produced by theinequalityExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInequalityExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInvocationExpression
public T visitInvocationExpression(FHIRPathParser.InvocationExpressionContext ctx)
Visit a parse tree produced by theinvocationExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInvocationExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExpression
public T visitEqualityExpression(FHIRPathParser.EqualityExpressionContext ctx)
Visit a parse tree produced by theequalityExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEqualityExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImpliesExpression
public T visitImpliesExpression(FHIRPathParser.ImpliesExpressionContext ctx)
Visit a parse tree produced by theimpliesExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImpliesExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTermExpression
public T visitTermExpression(FHIRPathParser.TermExpressionContext ctx)
Visit a parse tree produced by thetermExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTermExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeExpression
public T visitTypeExpression(FHIRPathParser.TypeExpressionContext ctx)
Visit a parse tree produced by thetypeExpression
labeled alternative inFHIRPathParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeExpression
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInvocationTerm
public T visitInvocationTerm(FHIRPathParser.InvocationTermContext ctx)
Visit a parse tree produced by theinvocationTerm
labeled alternative inFHIRPathParser.term()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInvocationTerm
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLiteralTerm
public T visitLiteralTerm(FHIRPathParser.LiteralTermContext ctx)
Visit a parse tree produced by theliteralTerm
labeled alternative inFHIRPathParser.term()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLiteralTerm
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExternalConstantTerm
public T visitExternalConstantTerm(FHIRPathParser.ExternalConstantTermContext ctx)
Visit a parse tree produced by theexternalConstantTerm
labeled alternative inFHIRPathParser.term()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExternalConstantTerm
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParenthesizedTerm
public T visitParenthesizedTerm(FHIRPathParser.ParenthesizedTermContext ctx)
Visit a parse tree produced by theparenthesizedTerm
labeled alternative inFHIRPathParser.term()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenthesizedTerm
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
public T visitNullLiteral(FHIRPathParser.NullLiteralContext ctx)
Visit a parse tree produced by thenullLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNullLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
public T visitBooleanLiteral(FHIRPathParser.BooleanLiteralContext ctx)
Visit a parse tree produced by thebooleanLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooleanLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
public T visitStringLiteral(FHIRPathParser.StringLiteralContext ctx)
Visit a parse tree produced by thestringLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStringLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNumberLiteral
public T visitNumberLiteral(FHIRPathParser.NumberLiteralContext ctx)
Visit a parse tree produced by thenumberLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNumberLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDateLiteral
public T visitDateLiteral(FHIRPathParser.DateLiteralContext ctx)
Visit a parse tree produced by thedateLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDateLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDateTimeLiteral
public T visitDateTimeLiteral(FHIRPathParser.DateTimeLiteralContext ctx)
Visit a parse tree produced by thedateTimeLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDateTimeLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTimeLiteral
public T visitTimeLiteral(FHIRPathParser.TimeLiteralContext ctx)
Visit a parse tree produced by thetimeLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTimeLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQuantityLiteral
public T visitQuantityLiteral(FHIRPathParser.QuantityLiteralContext ctx)
Visit a parse tree produced by thequantityLiteral
labeled alternative inFHIRPathParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQuantityLiteral
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExternalConstant
public T visitExternalConstant(FHIRPathParser.ExternalConstantContext ctx)
Visit a parse tree produced byFHIRPathParser.externalConstant()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExternalConstant
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMemberInvocation
public T visitMemberInvocation(FHIRPathParser.MemberInvocationContext ctx)
Visit a parse tree produced by thememberInvocation
labeled alternative inFHIRPathParser.invocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMemberInvocation
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionInvocation
public T visitFunctionInvocation(FHIRPathParser.FunctionInvocationContext ctx)
Visit a parse tree produced by thefunctionInvocation
labeled alternative inFHIRPathParser.invocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunctionInvocation
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThisInvocation
public T visitThisInvocation(FHIRPathParser.ThisInvocationContext ctx)
Visit a parse tree produced by thethisInvocation
labeled alternative inFHIRPathParser.invocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThisInvocation
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIndexInvocation
public T visitIndexInvocation(FHIRPathParser.IndexInvocationContext ctx)
Visit a parse tree produced by theindexInvocation
labeled alternative inFHIRPathParser.invocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIndexInvocation
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTotalInvocation
public T visitTotalInvocation(FHIRPathParser.TotalInvocationContext ctx)
Visit a parse tree produced by thetotalInvocation
labeled alternative inFHIRPathParser.invocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTotalInvocation
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunction
public T visitFunction(FHIRPathParser.FunctionContext ctx)
Visit a parse tree produced byFHIRPathParser.function()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunction
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParamList
public T visitParamList(FHIRPathParser.ParamListContext ctx)
Visit a parse tree produced byFHIRPathParser.paramList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParamList
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQuantity
public T visitQuantity(FHIRPathParser.QuantityContext ctx)
Visit a parse tree produced byFHIRPathParser.quantity()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQuantity
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnit
public T visitUnit(FHIRPathParser.UnitContext ctx)
Visit a parse tree produced byFHIRPathParser.unit()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnit
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDateTimePrecision
public T visitDateTimePrecision(FHIRPathParser.DateTimePrecisionContext ctx)
Visit a parse tree produced byFHIRPathParser.dateTimePrecision()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDateTimePrecision
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPluralDateTimePrecision
public T visitPluralDateTimePrecision(FHIRPathParser.PluralDateTimePrecisionContext ctx)
Visit a parse tree produced byFHIRPathParser.pluralDateTimePrecision()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPluralDateTimePrecision
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeSpecifier
public T visitTypeSpecifier(FHIRPathParser.TypeSpecifierContext ctx)
Visit a parse tree produced byFHIRPathParser.typeSpecifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeSpecifier
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedIdentifier
public T visitQualifiedIdentifier(FHIRPathParser.QualifiedIdentifierContext ctx)
Visit a parse tree produced byFHIRPathParser.qualifiedIdentifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQualifiedIdentifier
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentifier
public T visitIdentifier(FHIRPathParser.IdentifierContext ctx)
Visit a parse tree produced byFHIRPathParser.identifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentifier
in interfaceFHIRPathVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-