Class GorScriptBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>,GorScriptVisitor<T>
- Direct Known Subclasses:
CalcCompiler,SemanticChecker
public class GorScriptBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements GorScriptVisitor<T>
GorScriptVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors Constructor Description GorScriptBaseVisitor() -
Method Summary
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
GorScriptBaseVisitor
public GorScriptBaseVisitor()
-
-
Method Details
-
visitScript
Visit a parse tree produced byGorScriptParser.script().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitScriptin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCalc_expression
Visit a parse tree produced byGorScriptParser.calc_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCalc_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreate_statement
Visit a parse tree produced byGorScriptParser.create_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreate_statementin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDef_macro
Visit a parse tree produced byGorScriptParser.def_macro().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDef_macroin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMacro_value
Visit a parse tree produced byGorScriptParser.macro_value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMacro_valuein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMacro_name
Visit a parse tree produced byGorScriptParser.macro_name().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMacro_namein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVirtual_relation_name
Visit a parse tree produced byGorScriptParser.virtual_relation_name().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVirtual_relation_namein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuery_expression
Visit a parse tree produced byGorScriptParser.query_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuery_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGornor_expression
Visit a parse tree produced byGorScriptParser.gornor_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGornor_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGor_expression
Visit a parse tree produced byGorScriptParser.gor_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGor_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPgor_expression
Visit a parse tree produced byGorScriptParser.pgor_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPgor_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNor_expression
Visit a parse tree produced byGorScriptParser.nor_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNor_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptions_and_args
Visit a parse tree produced byGorScriptParser.options_and_args().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptions_and_argsin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOption
Visit a parse tree produced byGorScriptParser.option().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgument
Visit a parse tree produced byGorScriptParser.argument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVirtual_relation
Visit a parse tree produced byGorScriptParser.virtual_relation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVirtual_relationin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInput_source
Visit a parse tree produced byGorScriptParser.input_source().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInput_sourcein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFilename
Visit a parse tree produced byGorScriptParser.filename().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFilenamein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNested_query
Visit a parse tree produced byGorScriptParser.nested_query().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNested_queryin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOption_value
Visit a parse tree produced byGorScriptParser.option_value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOption_valuein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPipe_command
Visit a parse tree produced byGorScriptParser.pipe_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPipe_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCalc_command
Visit a parse tree produced byGorScriptParser.calc_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCalc_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhere_command
Visit a parse tree produced byGorScriptParser.where_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhere_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReplace_command
Visit a parse tree produced byGorScriptParser.replace_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReplace_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSelect_command
Visit a parse tree produced byGorScriptParser.select_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSelect_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHide_command
Visit a parse tree produced byGorScriptParser.hide_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHide_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRename_command
Visit a parse tree produced byGorScriptParser.rename_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRename_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGeneric_command
Visit a parse tree produced byGorScriptParser.generic_command().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGeneric_commandin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_list
Visit a parse tree produced byGorScriptParser.column_list().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_listin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_selection
Visit a parse tree produced byGorScriptParser.column_selection().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_selectionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_range
Visit a parse tree produced byGorScriptParser.column_range().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_rangein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_ref
Visit a parse tree produced byGorScriptParser.column_ref().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_refin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_wildcard
Visit a parse tree produced byGorScriptParser.column_wildcard().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_wildcardin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_name
Visit a parse tree produced byGorScriptParser.column_name().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_namein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_number
Visit a parse tree produced byGorScriptParser.column_number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_numberin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumn_rename_rule
Visit a parse tree produced byGorScriptParser.column_rename_rule().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumn_rename_rulein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCalc_expression_list
Visit a parse tree produced byGorScriptParser.calc_expression_list().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCalc_expression_listin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
Visit a parse tree produced byGorScriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTerm
Visit a parse tree produced byGorScriptParser.term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTermin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptional_power_factor
Visit a parse tree produced byGorScriptParser.optional_power_factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptional_power_factorin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPower_factor
Visit a parse tree produced byGorScriptParser.power_factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPower_factorin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFactor
Visit a parse tree produced byGorScriptParser.factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFactorin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSigned_factor
Visit a parse tree produced byGorScriptParser.signed_factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSigned_factorin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitXfactor
Visit a parse tree produced byGorScriptParser.xfactor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitXfactorin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParen_expr
Visit a parse tree produced byGorScriptParser.paren_expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParen_exprin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction_expr
Visit a parse tree produced byGorScriptParser.function_expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunction_exprin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction_call
Visit a parse tree produced byGorScriptParser.function_call().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunction_callin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIf_expr
Visit a parse tree produced byGorScriptParser.if_expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIf_exprin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRel_expr
Visit a parse tree produced byGorScriptParser.rel_expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRel_exprin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRel_term
Visit a parse tree produced byGorScriptParser.rel_term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRel_termin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicate_factor
Visit a parse tree produced byGorScriptParser.predicate_factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPredicate_factorin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParen_rel_expr
Visit a parse tree produced byGorScriptParser.paren_rel_expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParen_rel_exprin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNot_rel_expr
Visit a parse tree produced byGorScriptParser.not_rel_expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNot_rel_exprin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicate
Visit a parse tree produced byGorScriptParser.predicate().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPredicatein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompare_expressions
Visit a parse tree produced byGorScriptParser.compare_expressions().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompare_expressionsin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIn_expression
Visit a parse tree produced byGorScriptParser.in_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIn_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndag_expression
Visit a parse tree produced byGorScriptParser.indag_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndag_expressionin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction_name
Visit a parse tree produced byGorScriptParser.function_name().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunction_namein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValue
Visit a parse tree produced byGorScriptParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitValuein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariable
Visit a parse tree produced byGorScriptParser.variable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariablein interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumber
Visit a parse tree produced byGorScriptParser.number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumberin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString_literal_list
Visit a parse tree produced byGorScriptParser.string_literal_list().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitString_literal_listin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString_literal
Visit a parse tree produced byGorScriptParser.string_literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitString_literalin interfaceGorScriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-