Package com.sk89q.worldedit.antlr
Interface ExpressionVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor 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 theAddExprlabeled alternative inExpressionParser.additiveExpression().Visit a parse tree produced by theAdFallthroughlabeled 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 theCAFallthroughlabeled alternative inExpressionParser.conditionalAndExpression().Visit a parse tree produced by theCaselabeled alternative inExpressionParser.switchLabel().Visit a parse tree produced by theCEFallthroughlabeled alternative inExpressionParser.conditionalExpression().Visit a parse tree produced by theCOFallthroughlabeled alternative inExpressionParser.conditionalOrExpression().Visit a parse tree produced by theComplementExprlabeled alternative inExpressionParser.unaryExpression().Visit a parse tree produced by theConditionalAndExprlabeled alternative inExpressionParser.conditionalAndExpression().Visit a parse tree produced by theConditionalOrExprlabeled alternative inExpressionParser.conditionalOrExpression().Visit a parse tree produced by theConstantExprlabeled alternative inExpressionParser.unprioritizedExpression().Visit a parse tree produced byExpressionParser.constantExpression().Visit a parse tree produced byExpressionParser.continueStatement().Visit a parse tree produced by theDefaultlabeled alternative inExpressionParser.switchLabel().Visit a parse tree produced byExpressionParser.doStatement().Visit a parse tree produced byExpressionParser.emptyStatement().Visit a parse tree produced by theEqFallthroughlabeled alternative inExpressionParser.equalityExpression().Visit a parse tree produced by theEqualityExprlabeled 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 theFunctionCallExprlabeled alternative inExpressionParser.unprioritizedExpression().Visit a parse tree produced by theIdExprlabeled alternative inExpressionParser.unprioritizedExpression().Visit a parse tree produced byExpressionParser.ifStatement().Visit a parse tree produced by theMuFallthroughlabeled alternative inExpressionParser.multiplicativeExpression().Visit a parse tree produced by theMultiplicativeExprlabeled alternative inExpressionParser.multiplicativeExpression().Visit a parse tree produced by theNotExprlabeled alternative inExpressionParser.unaryExpression().Visit a parse tree produced by thePlusMinusExprlabeled alternative inExpressionParser.unaryExpression().Visit a parse tree produced by thePoFallthroughlabeled alternative inExpressionParser.postfixExpression().Visit a parse tree produced by thePostCrementExprlabeled alternative inExpressionParser.postfixExpression().Visit a parse tree produced by thePostfixExprlabeled alternative inExpressionParser.postfixExpression().Visit a parse tree produced by thePowerExprlabeled alternative inExpressionParser.powerExpression().Visit a parse tree produced by thePreCrementExprlabeled alternative inExpressionParser.unaryExpression().Visit a parse tree produced by thePwFallthroughlabeled alternative inExpressionParser.powerExpression().Visit a parse tree produced by theReFallthroughlabeled alternative inExpressionParser.relationalExpression().Visit a parse tree produced by theRelationalExprlabeled alternative inExpressionParser.relationalExpression().Visit a parse tree produced byExpressionParser.returnStatement().Visit a parse tree produced by theShFallthroughlabeled alternative inExpressionParser.shiftExpression().Visit a parse tree produced by theShiftExprlabeled 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 theTernaryExprlabeled alternative inExpressionParser.conditionalExpression().Visit a parse tree produced by theUaFallthroughlabeled alternative inExpressionParser.unaryExpression().Visit a parse tree produced byExpressionParser.whileStatement().Visit a parse tree produced by theWrappedExprlabeled 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 theCaselabeled alternative inExpressionParser.switchLabel().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefault
Visit a parse tree produced by theDefaultlabeled 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 theCEFallthroughlabeled alternative inExpressionParser.conditionalExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTernaryExpr
Visit a parse tree produced by theTernaryExprlabeled alternative inExpressionParser.conditionalExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCOFallthrough
Visit a parse tree produced by theCOFallthroughlabeled alternative inExpressionParser.conditionalOrExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalOrExpr
Visit a parse tree produced by theConditionalOrExprlabeled alternative inExpressionParser.conditionalOrExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCAFallthrough
Visit a parse tree produced by theCAFallthroughlabeled alternative inExpressionParser.conditionalAndExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalAndExpr
Visit a parse tree produced by theConditionalAndExprlabeled alternative inExpressionParser.conditionalAndExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
Visit a parse tree produced by theEqualityExprlabeled alternative inExpressionParser.equalityExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqFallthrough
Visit a parse tree produced by theEqFallthroughlabeled alternative inExpressionParser.equalityExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReFallthrough
Visit a parse tree produced by theReFallthroughlabeled alternative inExpressionParser.relationalExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelationalExpr
Visit a parse tree produced by theRelationalExprlabeled alternative inExpressionParser.relationalExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitShFallthrough
Visit a parse tree produced by theShFallthroughlabeled alternative inExpressionParser.shiftExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitShiftExpr
Visit a parse tree produced by theShiftExprlabeled alternative inExpressionParser.shiftExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAddExpr
Visit a parse tree produced by theAddExprlabeled alternative inExpressionParser.additiveExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdFallthrough
Visit a parse tree produced by theAdFallthroughlabeled alternative inExpressionParser.additiveExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpr
Visit a parse tree produced by theMultiplicativeExprlabeled alternative inExpressionParser.multiplicativeExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMuFallthrough
Visit a parse tree produced by theMuFallthroughlabeled alternative inExpressionParser.multiplicativeExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPowerExpr
Visit a parse tree produced by thePowerExprlabeled alternative inExpressionParser.powerExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPwFallthrough
Visit a parse tree produced by thePwFallthroughlabeled alternative inExpressionParser.powerExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPreCrementExpr
Visit a parse tree produced by thePreCrementExprlabeled alternative inExpressionParser.unaryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPlusMinusExpr
Visit a parse tree produced by thePlusMinusExprlabeled alternative inExpressionParser.unaryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUaFallthrough
Visit a parse tree produced by theUaFallthroughlabeled alternative inExpressionParser.unaryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComplementExpr
Visit a parse tree produced by theComplementExprlabeled alternative inExpressionParser.unaryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNotExpr
Visit a parse tree produced by theNotExprlabeled alternative inExpressionParser.unaryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPostfixExpr
Visit a parse tree produced by thePostfixExprlabeled alternative inExpressionParser.postfixExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPoFallthrough
Visit a parse tree produced by thePoFallthroughlabeled alternative inExpressionParser.postfixExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPostCrementExpr
Visit a parse tree produced by thePostCrementExprlabeled alternative inExpressionParser.postfixExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionCallExpr
Visit a parse tree produced by theFunctionCallExprlabeled alternative inExpressionParser.unprioritizedExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstantExpr
Visit a parse tree produced by theConstantExprlabeled alternative inExpressionParser.unprioritizedExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdExpr
Visit a parse tree produced by theIdExprlabeled alternative inExpressionParser.unprioritizedExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWrappedExpr
Visit a parse tree produced by theWrappedExprlabeled 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
-