Class CExpressionBaseVisitor<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>
,CExpressionVisitor<T>
CExpressionVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byCExpressionParser.additiveExpression()
.Visit a parse tree produced byCExpressionParser.andExpression()
.Visit a parse tree produced byCExpressionParser.argumentExpressionList()
.Visit a parse tree produced byCExpressionParser.assignmentExpression()
.Visit a parse tree produced byCExpressionParser.assignmentOperator()
.Visit a parse tree produced byCExpressionParser.conditionalExpression()
.Visit a parse tree produced byCExpressionParser.equalityExpression()
.Visit a parse tree produced byCExpressionParser.exclusiveOrExpression()
.Visit a parse tree produced byCExpressionParser.expression()
.Visit a parse tree produced byCExpressionParser.inclusiveOrExpression()
.Visit a parse tree produced byCExpressionParser.logicalAndExpression()
.Visit a parse tree produced byCExpressionParser.logicalOperand()
.Visit a parse tree produced byCExpressionParser.logicalOrExpression()
.Visit a parse tree produced byCExpressionParser.macroExpression()
.Visit a parse tree produced byCExpressionParser.multiplicativeExpression()
.Visit a parse tree produced byCExpressionParser.namespaceExpression()
.Visit a parse tree produced byCExpressionParser.primaryExpression()
.Visit a parse tree produced byCExpressionParser.relationalExpression()
.Visit a parse tree produced byCExpressionParser.shiftExpression()
.Visit a parse tree produced byCExpressionParser.specialOperator()
.Visit a parse tree produced byCExpressionParser.specialOperatorArgument()
.Visit a parse tree produced byCExpressionParser.unaryOperator()
.Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
CExpressionBaseVisitor
public CExpressionBaseVisitor()
-
-
Method Details
-
visitExpression
Visit a parse tree produced byCExpressionParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalExpression
Visit a parse tree produced byCExpressionParser.conditionalExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConditionalExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryExpression
Visit a parse tree produced byCExpressionParser.primaryExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSpecialOperator
Visit a parse tree produced byCExpressionParser.specialOperator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSpecialOperator
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSpecialOperatorArgument
Visit a parse tree produced byCExpressionParser.specialOperatorArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSpecialOperatorArgument
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnaryOperator
Visit a parse tree produced byCExpressionParser.unaryOperator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnaryOperator
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNamespaceExpression
Visit a parse tree produced byCExpressionParser.namespaceExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNamespaceExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpression
Visit a parse tree produced byCExpressionParser.multiplicativeExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiplicativeExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpression
Visit a parse tree produced byCExpressionParser.additiveExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAdditiveExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitShiftExpression
Visit a parse tree produced byCExpressionParser.shiftExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitShiftExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRelationalExpression
Visit a parse tree produced byCExpressionParser.relationalExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRelationalExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExpression
Visit a parse tree produced byCExpressionParser.equalityExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEqualityExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAndExpression
Visit a parse tree produced byCExpressionParser.andExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAndExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExclusiveOrExpression
Visit a parse tree produced byCExpressionParser.exclusiveOrExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExclusiveOrExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInclusiveOrExpression
Visit a parse tree produced byCExpressionParser.inclusiveOrExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInclusiveOrExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExpression
Visit a parse tree produced byCExpressionParser.logicalAndExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLogicalAndExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExpression
Visit a parse tree produced byCExpressionParser.logicalOrExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLogicalOrExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalOperand
Visit a parse tree produced byCExpressionParser.logicalOperand()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLogicalOperand
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMacroExpression
Visit a parse tree produced byCExpressionParser.macroExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMacroExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArgumentExpressionList
Visit a parse tree produced byCExpressionParser.argumentExpressionList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArgumentExpressionList
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignmentExpression
Visit a parse tree produced byCExpressionParser.assignmentExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssignmentExpression
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignmentOperator
Visit a parse tree produced byCExpressionParser.assignmentOperator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssignmentOperator
in interfaceCExpressionVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-