Class OpenDSLWalker
- All Implemented Interfaces:
com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<Var>
public class OpenDSLWalker extends OpenDSLLink
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OpenDSLWalker(OpenDSLContext context)
OpenDSLWalker(OpenDSLContext context, String script)
-
Method Summary
Modifier and Type Method Description com.walkfares.odsl.grammar.OpenDSLParser.CommentContext
getFirstComment()
Map<String,List<UDF>>
getUDFs()
com.walkfares.odsl.grammar.OpenDSLParser.StartContext
prep()
Var
runFoldingRange(int line)
Var
start()
Var
visitCreateIndex(com.walkfares.odsl.grammar.OpenDSLParser.CreateIndexContext ctx)
Visit a parse tree produced byOpenDSLParser.createIndex()
.Var
visitDelete(com.walkfares.odsl.grammar.OpenDSLParser.DeleteContext ctx)
Visit a parse tree produced byOpenDSLParser.delete()
.Var
visitDeleteBulk(com.walkfares.odsl.grammar.OpenDSLParser.DeleteBulkContext ctx)
Visit a parse tree produced byOpenDSLParser.deleteBulk()
.Var
visitImportscript(com.walkfares.odsl.grammar.OpenDSLParser.ImportscriptContext ctx)
Visit a parse tree produced byOpenDSLParser.importscript()
.Var
visitIndexfield(com.walkfares.odsl.grammar.OpenDSLParser.IndexfieldContext ctx)
Visit a parse tree produced byOpenDSLParser.indexfield()
.Var
visitLog(com.walkfares.odsl.grammar.OpenDSLParser.LogContext ctx)
Visit a parse tree produced byOpenDSLParser.log()
.Var
visitLogout(com.walkfares.odsl.grammar.OpenDSLParser.LogoutContext ctx)
Visit a parse tree produced byOpenDSLParser.logout()
.Var
visitMethod(com.walkfares.odsl.grammar.OpenDSLParser.MethodContext ctx)
Visit a parse tree produced byOpenDSLParser.method()
.Var
visitPrint(com.walkfares.odsl.grammar.OpenDSLParser.PrintContext ctx)
Visit a parse tree produced byOpenDSLParser.print()
.Var
visitQualityCheck(com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckContext ctx)
Visit a parse tree produced byOpenDSLParser.qualityCheck()
.Var
visitQualityCheckWithChecks(com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckWithChecksContext ctx)
Visit a parse tree produced byOpenDSLParser.qualityCheckWithChecks()
.Var
visitRename(com.walkfares.odsl.grammar.OpenDSLParser.RenameContext ctx)
Visit a parse tree produced byOpenDSLParser.rename()
.Var
visitReturnstmt(com.walkfares.odsl.grammar.OpenDSLParser.ReturnstmtContext ctx)
Visit a parse tree produced byOpenDSLParser.returnstmt()
.Var
visitSave(com.walkfares.odsl.grammar.OpenDSLParser.SaveContext ctx)
Visit a parse tree produced byOpenDSLParser.save()
.Var
visitSet(com.walkfares.odsl.grammar.OpenDSLParser.SetContext ctx)
Visit a parse tree produced byOpenDSLParser.set()
.Var
visitThrowerror(com.walkfares.odsl.grammar.OpenDSLParser.ThrowerrorContext ctx)
Visit a parse tree produced byOpenDSLParser.throwerror()
.Var
visitTrigger(com.walkfares.odsl.grammar.OpenDSLParser.TriggerContext ctx)
Visit a parse tree produced byOpenDSLParser.trigger()
.Var
visitUpdateBulk(com.walkfares.odsl.grammar.OpenDSLParser.UpdateBulkContext ctx)
Visit a parse tree produced byOpenDSLParser.updateBulk()
.Var
visitUse(com.walkfares.odsl.grammar.OpenDSLParser.UseContext ctx)
Visit a parse tree produced byOpenDSLParser.use()
.Var
visitWaitcmd(com.walkfares.odsl.grammar.OpenDSLParser.WaitcmdContext ctx)
Visit a parse tree produced byOpenDSLParser.waitcmd()
.Methods inherited from class com.walkfares.odsl.OpenDSLSearch
visitAggregate, visitAggregationPipeline, visitFind
Methods inherited from class com.walkfares.odsl.OpenDSLWorkflow
endPhase, getCurrentPhase, reschedule, runWorkflow, startPhase, visitAbort, visitAction, visitDeclaredType, visitExtractor, visitFail, visitInnerObjectDeclaration, visitObjectDeclaration, visitPhase, visitPublish, visitReschedule, visitRun, visitSend, visitSendmail, visitTransformer, visitTypeDeclaration, visitVarname, visitWorkflow, visitWorkflowAction, visitWorkflowEvent, visitWorkflowGateway, visitWorkflowWorkflow
Methods inherited from class com.walkfares.odsl.OpenDSLFunction
visitFunction, visitFunctionbody, visitStart
Methods inherited from class com.walkfares.odsl.OpenDSLControlVisitor
visitCondition, visitForeach, visitForstmt, visitIfstmt, visitSingleLineIfExpression, visitSingleLineIfStatement, visitTransformFor, visitTransformIf, visitWhilestmt
Methods inherited from class com.walkfares.odsl.OpenDSLVarVisitor
addLogMessage, callFunction, changeModule, getContext, getCurrentLine, getProperty, getPropertyParent, getUDF, getUDF, getVarHelper, matches, newInstance, save, setEOFEndsExecution, visitActivevar, visitAddingExpression, visitArray, visitArrayexpression, visitArrayindex, visitArrayinitialiser, visitAssign, visitAssignee, visitAvservice, visitConditionalExpression, visitDateexpression, visitErrors, visitExponentExpression, visitExpression, visitExtractCheck, visitExtractClick, visitExtractFill, visitExtractParam, visitExtractSelect, visitFunctioncall, visitId, visitInteger, visitMethod, visitMethodbody, visitMultiplyExpression, visitNumber, visitPrint, visitProperty, visitRelationalExpression, visitRowexpression, visitScalarvar, visitSingularExpression, visitStatement, visitString, visitTagstmt, visitTf, visitUnevaluatedExpression, visitVariable, visitVersion
Methods inherited from class com.walkfares.odsl.grammar.OpenDSLBaseVisitor
visitActionExit, visitActionInput, visitActionOutput, visitAddField, visitAggregationOptions, visitArraycondition, visitArrayindex, visitBucketOutput, visitComment, visitControl, visitDate, visitDynamicname, visitErrorText, visitExpressionOrCondition, visitExtract, visitFacetItem, visitFoldingrange, visitFunctionparam, visitGranularity, visitGroupAssign, visitIndexcollation, visitIndexcollationitem, visitIndexoptions, visitIndexpartial, visitIndexttl, visitJsonElement, visitJsonObject, visitLinkType, visitMlVarname, visitNl, visitObjectDefinition, visitPipelineAddFields, visitPipelineBucket, visitPipelineBucketauto, visitPipelineCount, visitPipelineDocuments, visitPipelineFacet, visitPipelineGeoNear, visitPipelineGraphLookup, visitPipelineGroup, visitPipelineItem, visitPipelineLimit, visitPipelineLookup, visitPipelineMatch, visitPipelineMerge, visitPipelineOperator, visitPipelineOut, visitPipelineProject, visitPipelineRedact, visitPipelineReplaceRoot, visitPipelineReplaceWith, visitPipelineSample, visitPipelineSkip, visitPipelineSort, visitPipelineSortByCount, visitPipelineUnwind, visitPprojectField, visitProject, visitProjectField, visitPublicvar, visitQualityCheckProfile, visitQualityCheckProfileParams, visitSortItem, visitTransform, visitTransformClear, visitTransformCreate, visitTransformIgnore, visitTransformOptions, visitTransformUnique, visitTypeBucket, visitTypeConstraint, visitTypeDefinition, visitTypeEditor, visitTypeExpression, visitTypeMethod, visitTypeMethodParams, visitTypeProperty, visitTypeSmartData, visitUpdateOperator, visitUpdateOperatorParam, visitWorkflowBody, visitWorkflowStart, visitWorkflowTransition
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
Method Details
-
getUDFs
-
getFirstComment
public com.walkfares.odsl.grammar.OpenDSLParser.CommentContext getFirstComment() -
start
-
prep
public com.walkfares.odsl.grammar.OpenDSLParser.StartContext prep() -
runFoldingRange
-
visitImportscript
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.importscript()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitPrint
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.print()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitLog
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.log()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitUse
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.use()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitLogout
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.logout()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitMethod
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.method()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod
in interfacecom.walkfares.odsl.grammar.OpenDSLVisitor<Var>
- Overrides:
visitMethod
in classOpenDSLVarVisitor
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnstmt
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.returnstmt()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitRename
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.rename()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitSave
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.save()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitThrowerror
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.throwerror()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitDelete
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.delete()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitSet
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.set()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitTrigger
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.trigger()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitWaitcmd
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.waitcmd()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitQualityCheck
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.qualityCheck()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitQualityCheckWithChecks
public Var visitQualityCheckWithChecks(com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckWithChecksContext ctx)Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.qualityCheckWithChecks()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitUpdateBulk
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.updateBulk()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitDeleteBulk
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.deleteBulk()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitCreateIndex
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.createIndex()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitIndexfield
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.indexfield()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.
-