Package com.walkfares.odsl
Class Evaluator
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Boolean>
com.walkfares.odsl.Evaluator
- All Implemented Interfaces:
com.walkfares.odsl.grammar.OpenDSLVisitor<Boolean>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<Boolean>
public class Evaluator extends com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Boolean>
-
Constructor Summary
Constructors Constructor Description Evaluator()
-
Method Summary
Modifier and Type Method Description static Boolean
EvaluateCondition(OpenDSLVarVisitor visitor, String condition)
static Var
EvaluateExpression(OpenDSLVarVisitor visitor, String expression)
static com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckProfileContext
EvaluateQualityCheckProfile(OpenDSLVarVisitor visitor, String expression)
static String
getString(org.antlr.v4.runtime.ParserRuleContext c)
static Set<String>
getUDFNames(OpenDSLContext context, String script)
static boolean
hasUDF(OpenDSLContext context, String function, VarScript script)
static com.walkfares.odsl.grammar.OpenDSLParser.ExpressionContext
ParseExpression(String expression)
static Var
RunScriptFunction(OpenDSLContext context, String function, VarScript script)
static Var
RunScriptFunction(OpenDSLContext context, String function, String script)
Methods inherited from class com.walkfares.odsl.grammar.OpenDSLBaseVisitor
visitAbort, visitAction, visitActionExit, visitActionInput, visitActionOutput, visitActivevar, visitAddField, visitAddingExpression, visitAggregate, visitAggregationOptions, visitAggregationPipeline, visitArray, visitArraycondition, visitArrayexpression, visitArrayindex, visitArrayinitialiser, visitAssign, visitAssignee, visitAvservice, visitBucketOutput, visitComment, visitCondition, visitConditionalExpression, visitControl, visitCreateIndex, visitDate, visitDateexpression, visitDeclaredType, visitDelete, visitDeleteBulk, visitDynamicname, visitErrors, visitErrorText, visitExponentExpression, visitExpression, visitExpressionOrCondition, visitExtract, visitExtractCheck, visitExtractClick, visitExtractFill, visitExtractor, visitExtractParam, visitExtractSelect, visitFacetItem, visitFail, visitFind, visitFoldingrange, visitForeach, visitForstmt, visitFunction, visitFunctionbody, visitFunctioncall, visitFunctionparam, visitGranularity, visitGroupAssign, visitId, visitIfstmt, visitImportscript, visitIndexcollation, visitIndexcollationitem, visitIndexfield, visitIndexoptions, visitIndexpartial, visitIndexttl, visitInteger, visitJsonElement, visitJsonObject, visitLink, visitLinkType, visitLog, visitLogout, visitMethod, visitMethodbody, visitMlVarname, visitMultiplyExpression, visitNl, visitNumber, visitObjectDeclaration, visitObjectDefinition, visitPhase, 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, visitPrint, visitProject, visitProjectField, visitProperty, visitPublicvar, visitPublish, visitQualityCheck, visitQualityCheckProfile, visitQualityCheckProfileParams, visitQualityCheckWithChecks, visitRelationalExpression, visitRename, visitReschedule, visitReturnstmt, visitRowexpression, visitRun, visitSave, visitScalarvar, visitSend, visitSendmail, visitSet, visitSingleLineIfExpression, visitSingleLineIfStatement, visitSingularExpression, visitSortItem, visitStart, visitStatement, visitString, visitTagstmt, visitTf, visitThrowerror, visitTransform, visitTransformClear, visitTransformCreate, visitTransformer, visitTransformFor, visitTransformIf, visitTransformIgnore, visitTransformOptions, visitTransformUnique, visitTrigger, visitTypeBucket, visitTypeConstraint, visitTypeDeclaration, visitTypeDefinition, visitTypeEditor, visitTypeExpression, visitTypeMethod, visitTypeMethodParams, visitTypeProperty, visitTypeSmartData, visitUnevaluatedExpression, visitUpdateBulk, visitUpdateOperator, visitUpdateOperatorParam, visitUse, visitVariable, visitVarname, visitVersion, visitWaitcmd, visitWhilestmt, visitWorkflow, visitWorkflowAction, visitWorkflowBody, visitWorkflowEvent, visitWorkflowGateway, visitWorkflowStart, visitWorkflowTransition, visitWorkflowWorkflow
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
Evaluator
public Evaluator()
-
-
Method Details
-
EvaluateCondition
-
EvaluateExpression
-
RunScriptFunction
-
RunScriptFunction
-
hasUDF
-
getUDFNames
-
EvaluateQualityCheckProfile
public static com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckProfileContext EvaluateQualityCheckProfile(OpenDSLVarVisitor visitor, String expression) -
getString
-
ParseExpression
public static com.walkfares.odsl.grammar.OpenDSLParser.ExpressionContext ParseExpression(String expression)
-