Class FHIRPathBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- com.ibm.fhir.path.FHIRPathBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
FHIRPathVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<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 theindexerExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexerExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPolarityExpression
public T visitPolarityExpression(FHIRPathParser.PolarityExpressionContext ctx)
Visit a parse tree produced by thepolarityExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPolarityExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpression
public T visitAdditiveExpression(FHIRPathParser.AdditiveExpressionContext ctx)
Visit a parse tree produced by theadditiveExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAdditiveExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpression
public T visitMultiplicativeExpression(FHIRPathParser.MultiplicativeExpressionContext ctx)
Visit a parse tree produced by themultiplicativeExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiplicativeExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionExpression
public T visitUnionExpression(FHIRPathParser.UnionExpressionContext ctx)
Visit a parse tree produced by theunionExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnionExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOrExpression
public T visitOrExpression(FHIRPathParser.OrExpressionContext ctx)
Visit a parse tree produced by theorExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOrExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAndExpression
public T visitAndExpression(FHIRPathParser.AndExpressionContext ctx)
Visit a parse tree produced by theandExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMembershipExpression
public T visitMembershipExpression(FHIRPathParser.MembershipExpressionContext ctx)
Visit a parse tree produced by themembershipExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMembershipExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInequalityExpression
public T visitInequalityExpression(FHIRPathParser.InequalityExpressionContext ctx)
Visit a parse tree produced by theinequalityExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInequalityExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInvocationExpression
public T visitInvocationExpression(FHIRPathParser.InvocationExpressionContext ctx)
Visit a parse tree produced by theinvocationExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInvocationExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpression
public T visitEqualityExpression(FHIRPathParser.EqualityExpressionContext ctx)
Visit a parse tree produced by theequalityExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEqualityExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImpliesExpression
public T visitImpliesExpression(FHIRPathParser.ImpliesExpressionContext ctx)
Visit a parse tree produced by theimpliesExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImpliesExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTermExpression
public T visitTermExpression(FHIRPathParser.TermExpressionContext ctx)
Visit a parse tree produced by thetermExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTermExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeExpression
public T visitTypeExpression(FHIRPathParser.TypeExpressionContext ctx)
Visit a parse tree produced by thetypeExpressionlabeled alternative inFHIRPathParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeExpressionin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInvocationTerm
public T visitInvocationTerm(FHIRPathParser.InvocationTermContext ctx)
Visit a parse tree produced by theinvocationTermlabeled alternative inFHIRPathParser.term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInvocationTermin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralTerm
public T visitLiteralTerm(FHIRPathParser.LiteralTermContext ctx)
Visit a parse tree produced by theliteralTermlabeled alternative inFHIRPathParser.term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralTermin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExternalConstantTerm
public T visitExternalConstantTerm(FHIRPathParser.ExternalConstantTermContext ctx)
Visit a parse tree produced by theexternalConstantTermlabeled alternative inFHIRPathParser.term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExternalConstantTermin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedTerm
public T visitParenthesizedTerm(FHIRPathParser.ParenthesizedTermContext ctx)
Visit a parse tree produced by theparenthesizedTermlabeled alternative inFHIRPathParser.term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenthesizedTermin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
public T visitNullLiteral(FHIRPathParser.NullLiteralContext ctx)
Visit a parse tree produced by thenullLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
public T visitBooleanLiteral(FHIRPathParser.BooleanLiteralContext ctx)
Visit a parse tree produced by thebooleanLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleanLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
public T visitStringLiteral(FHIRPathParser.StringLiteralContext ctx)
Visit a parse tree produced by thestringLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumberLiteral
public T visitNumberLiteral(FHIRPathParser.NumberLiteralContext ctx)
Visit a parse tree produced by thenumberLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumberLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDateLiteral
public T visitDateLiteral(FHIRPathParser.DateLiteralContext ctx)
Visit a parse tree produced by thedateLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDateLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDateTimeLiteral
public T visitDateTimeLiteral(FHIRPathParser.DateTimeLiteralContext ctx)
Visit a parse tree produced by thedateTimeLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDateTimeLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTimeLiteral
public T visitTimeLiteral(FHIRPathParser.TimeLiteralContext ctx)
Visit a parse tree produced by thetimeLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTimeLiteralin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuantityLiteral
public T visitQuantityLiteral(FHIRPathParser.QuantityLiteralContext ctx)
Visit a parse tree produced by thequantityLiterallabeled alternative inFHIRPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuantityLiteralin 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:
visitExternalConstantin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberInvocation
public T visitMemberInvocation(FHIRPathParser.MemberInvocationContext ctx)
Visit a parse tree produced by thememberInvocationlabeled alternative inFHIRPathParser.invocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberInvocationin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionInvocation
public T visitFunctionInvocation(FHIRPathParser.FunctionInvocationContext ctx)
Visit a parse tree produced by thefunctionInvocationlabeled alternative inFHIRPathParser.invocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionInvocationin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisInvocation
public T visitThisInvocation(FHIRPathParser.ThisInvocationContext ctx)
Visit a parse tree produced by thethisInvocationlabeled alternative inFHIRPathParser.invocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisInvocationin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexInvocation
public T visitIndexInvocation(FHIRPathParser.IndexInvocationContext ctx)
Visit a parse tree produced by theindexInvocationlabeled alternative inFHIRPathParser.invocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexInvocationin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTotalInvocation
public T visitTotalInvocation(FHIRPathParser.TotalInvocationContext ctx)
Visit a parse tree produced by thetotalInvocationlabeled alternative inFHIRPathParser.invocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTotalInvocationin 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:
visitFunctionin 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:
visitParamListin 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:
visitQuantityin 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:
visitUnitin 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:
visitDateTimePrecisionin 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:
visitPluralDateTimePrecisionin 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:
visitTypeSpecifierin 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:
visitQualifiedIdentifierin 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:
visitIdentifierin interfaceFHIRPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-