Package com.sk89q.worldedit.antlr
Interface ExpressionVisitor<T>
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Superinterfaces:
ParseTreeVisitor<T>
- All Known Implementing Classes:
ExpressionBaseVisitor
This interface defines a complete generic visitor for a parse tree produced
by
ExpressionParser
.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced by theAddExpr
labeled alternative inExpressionParser.additiveExpression()
.Visit a parse tree produced by theAdFallthrough
labeled alternative inExpressionParser.additiveExpression()
.Visit a parse tree produced byExpressionParser.allStatements()
.Visit a parse tree produced byExpressionParser.assignment()
.Visit a parse tree produced byExpressionParser.assignmentExpression()
.Visit a parse tree produced byExpressionParser.assignmentOperator()
.Visit a parse tree produced byExpressionParser.block()
.Visit a parse tree produced byExpressionParser.breakStatement()
.Visit a parse tree produced by theCAFallthrough
labeled alternative inExpressionParser.conditionalAndExpression()
.Visit a parse tree produced by theCase
labeled alternative inExpressionParser.switchLabel()
.Visit a parse tree produced by theCEFallthrough
labeled alternative inExpressionParser.conditionalExpression()
.Visit a parse tree produced by theCOFallthrough
labeled alternative inExpressionParser.conditionalOrExpression()
.Visit a parse tree produced by theComplementExpr
labeled alternative inExpressionParser.unaryExpression()
.Visit a parse tree produced by theConditionalAndExpr
labeled alternative inExpressionParser.conditionalAndExpression()
.Visit a parse tree produced by theConditionalOrExpr
labeled alternative inExpressionParser.conditionalOrExpression()
.Visit a parse tree produced by theConstantExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.Visit a parse tree produced byExpressionParser.constantExpression()
.Visit a parse tree produced byExpressionParser.continueStatement()
.Visit a parse tree produced by theDefault
labeled alternative inExpressionParser.switchLabel()
.Visit a parse tree produced byExpressionParser.doStatement()
.Visit a parse tree produced byExpressionParser.emptyStatement()
.Visit a parse tree produced by theEqFallthrough
labeled alternative inExpressionParser.equalityExpression()
.Visit a parse tree produced by theEqualityExpr
labeled alternative inExpressionParser.equalityExpression()
.Visit a parse tree produced byExpressionParser.expression()
.Visit a parse tree produced byExpressionParser.expressionStatement()
.Visit a parse tree produced byExpressionParser.forStatement()
.Visit a parse tree produced byExpressionParser.functionCall()
.Visit a parse tree produced by theFunctionCallExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.Visit a parse tree produced by theIdExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.Visit a parse tree produced byExpressionParser.ifStatement()
.Visit a parse tree produced by theMuFallthrough
labeled alternative inExpressionParser.multiplicativeExpression()
.Visit a parse tree produced by theMultiplicativeExpr
labeled alternative inExpressionParser.multiplicativeExpression()
.Visit a parse tree produced by theNotExpr
labeled alternative inExpressionParser.unaryExpression()
.Visit a parse tree produced by thePlusMinusExpr
labeled alternative inExpressionParser.unaryExpression()
.Visit a parse tree produced by thePoFallthrough
labeled alternative inExpressionParser.postfixExpression()
.Visit a parse tree produced by thePostCrementExpr
labeled alternative inExpressionParser.postfixExpression()
.Visit a parse tree produced by thePostfixExpr
labeled alternative inExpressionParser.postfixExpression()
.Visit a parse tree produced by thePowerExpr
labeled alternative inExpressionParser.powerExpression()
.Visit a parse tree produced by thePreCrementExpr
labeled alternative inExpressionParser.unaryExpression()
.Visit a parse tree produced by thePwFallthrough
labeled alternative inExpressionParser.powerExpression()
.Visit a parse tree produced by theReFallthrough
labeled alternative inExpressionParser.relationalExpression()
.Visit a parse tree produced by theRelationalExpr
labeled alternative inExpressionParser.relationalExpression()
.Visit a parse tree produced byExpressionParser.returnStatement()
.Visit a parse tree produced by theShFallthrough
labeled alternative inExpressionParser.shiftExpression()
.Visit a parse tree produced by theShiftExpr
labeled alternative inExpressionParser.shiftExpression()
.Visit a parse tree produced byExpressionParser.simpleForStatement()
.Visit a parse tree produced byExpressionParser.statement()
.Visit a parse tree produced byExpressionParser.statements()
.Visit a parse tree produced byExpressionParser.switchStatement()
.Visit a parse tree produced by theTernaryExpr
labeled alternative inExpressionParser.conditionalExpression()
.Visit a parse tree produced by theUaFallthrough
labeled alternative inExpressionParser.unaryExpression()
.Visit a parse tree produced byExpressionParser.whileStatement()
.Visit a parse tree produced by theWrappedExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitAllStatements
Visit a parse tree produced byExpressionParser.allStatements()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStatements
Visit a parse tree produced byExpressionParser.statements()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStatement
Visit a parse tree produced byExpressionParser.statement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced byExpressionParser.block()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIfStatement
Visit a parse tree produced byExpressionParser.ifStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWhileStatement
Visit a parse tree produced byExpressionParser.whileStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoStatement
Visit a parse tree produced byExpressionParser.doStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForStatement
Visit a parse tree produced byExpressionParser.forStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleForStatement
Visit a parse tree produced byExpressionParser.simpleForStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBreakStatement
Visit a parse tree produced byExpressionParser.breakStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContinueStatement
Visit a parse tree produced byExpressionParser.continueStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStatement
Visit a parse tree produced byExpressionParser.returnStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchStatement
Visit a parse tree produced byExpressionParser.switchStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCase
Visit a parse tree produced by theCase
labeled alternative inExpressionParser.switchLabel()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefault
Visit a parse tree produced by theDefault
labeled alternative inExpressionParser.switchLabel()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionStatement
Visit a parse tree produced byExpressionParser.expressionStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyStatement
Visit a parse tree produced byExpressionParser.emptyStatement()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpression
Visit a parse tree produced byExpressionParser.expression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignmentExpression
Visit a parse tree produced byExpressionParser.assignmentExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignment
Visit a parse tree produced byExpressionParser.assignment()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignmentOperator
Visit a parse tree produced byExpressionParser.assignmentOperator()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCEFallthrough
Visit a parse tree produced by theCEFallthrough
labeled alternative inExpressionParser.conditionalExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTernaryExpr
Visit a parse tree produced by theTernaryExpr
labeled alternative inExpressionParser.conditionalExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCOFallthrough
Visit a parse tree produced by theCOFallthrough
labeled alternative inExpressionParser.conditionalOrExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalOrExpr
Visit a parse tree produced by theConditionalOrExpr
labeled alternative inExpressionParser.conditionalOrExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCAFallthrough
Visit a parse tree produced by theCAFallthrough
labeled alternative inExpressionParser.conditionalAndExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalAndExpr
Visit a parse tree produced by theConditionalAndExpr
labeled alternative inExpressionParser.conditionalAndExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
Visit a parse tree produced by theEqualityExpr
labeled alternative inExpressionParser.equalityExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqFallthrough
Visit a parse tree produced by theEqFallthrough
labeled alternative inExpressionParser.equalityExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReFallthrough
Visit a parse tree produced by theReFallthrough
labeled alternative inExpressionParser.relationalExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRelationalExpr
Visit a parse tree produced by theRelationalExpr
labeled alternative inExpressionParser.relationalExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitShFallthrough
Visit a parse tree produced by theShFallthrough
labeled alternative inExpressionParser.shiftExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitShiftExpr
Visit a parse tree produced by theShiftExpr
labeled alternative inExpressionParser.shiftExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAddExpr
Visit a parse tree produced by theAddExpr
labeled alternative inExpressionParser.additiveExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAdFallthrough
Visit a parse tree produced by theAdFallthrough
labeled alternative inExpressionParser.additiveExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpr
Visit a parse tree produced by theMultiplicativeExpr
labeled alternative inExpressionParser.multiplicativeExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMuFallthrough
Visit a parse tree produced by theMuFallthrough
labeled alternative inExpressionParser.multiplicativeExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPowerExpr
Visit a parse tree produced by thePowerExpr
labeled alternative inExpressionParser.powerExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPwFallthrough
Visit a parse tree produced by thePwFallthrough
labeled alternative inExpressionParser.powerExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPreCrementExpr
Visit a parse tree produced by thePreCrementExpr
labeled alternative inExpressionParser.unaryExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPlusMinusExpr
Visit a parse tree produced by thePlusMinusExpr
labeled alternative inExpressionParser.unaryExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUaFallthrough
Visit a parse tree produced by theUaFallthrough
labeled alternative inExpressionParser.unaryExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitComplementExpr
Visit a parse tree produced by theComplementExpr
labeled alternative inExpressionParser.unaryExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNotExpr
Visit a parse tree produced by theNotExpr
labeled alternative inExpressionParser.unaryExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostfixExpr
Visit a parse tree produced by thePostfixExpr
labeled alternative inExpressionParser.postfixExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPoFallthrough
Visit a parse tree produced by thePoFallthrough
labeled alternative inExpressionParser.postfixExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostCrementExpr
Visit a parse tree produced by thePostCrementExpr
labeled alternative inExpressionParser.postfixExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionCallExpr
Visit a parse tree produced by theFunctionCallExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstantExpr
Visit a parse tree produced by theConstantExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdExpr
Visit a parse tree produced by theIdExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWrappedExpr
Visit a parse tree produced by theWrappedExpr
labeled alternative inExpressionParser.unprioritizedExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstantExpression
Visit a parse tree produced byExpressionParser.constantExpression()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionCall
Visit a parse tree produced byExpressionParser.functionCall()
.- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-