Class PredicateExpressionVisitorImpl
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- condition.parser.PredicateExpressionBaseVisitor<BaseExpression>
-
- com.wavefront.predicates.PredicateExpressionVisitorImpl
-
- All Implemented Interfaces:
PredicateExpressionVisitor<BaseExpression>,org.antlr.v4.runtime.tree.ParseTreeVisitor<BaseExpression>
public class PredicateExpressionVisitorImpl extends PredicateExpressionBaseVisitor<BaseExpression>
Expression parser.- Author:
- vasily@wavefront.com.
-
-
Constructor Summary
Constructors Constructor Description PredicateExpressionVisitorImpl(TimeProvider timeProvider)
-
Method Summary
-
Methods inherited from class condition.parser.PredicateExpressionBaseVisitor
visitComparisonOperator, visitNumber, visitPlaceholder, visitProgram, visitPropertyAccessor, visitSiSuffix, visitStrHashCode, visitString, visitStringComparisonOp, visitStringEvalFunc, visitStringFunc, visitStrIsBlank, visitStrIsEmpty, visitStrIsNotBlank, visitStrIsNotEmpty, visitStrLeft, visitStrLength, visitStrParse, visitStrReplace, visitStrReplaceAll, visitStrRight, visitStrSubstring, visitStrToLowerCase, visitStrToUpperCase
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Constructor Detail
-
PredicateExpressionVisitorImpl
public PredicateExpressionVisitorImpl(TimeProvider timeProvider)
-
-
Method Detail
-
visitEvalExpression
public BaseExpression visitEvalExpression(PredicateExpressionParser.EvalExpressionContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalExpressionin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalExpressionin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringExpression
public BaseExpression visitStringExpression(PredicateExpressionParser.StringExpressionContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.stringExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringExpressionin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitStringExpressionin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIff
public BaseExpression visitIff(PredicateExpressionParser.IffContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.iff().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIffin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitIffin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParse
public BaseExpression visitParse(PredicateExpressionParser.ParseContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.parse().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParsein interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitParsein classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTime
public BaseExpression visitTime(PredicateExpressionParser.TimeContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.time().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTimein interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitTimein classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalLength
public BaseExpression visitEvalLength(PredicateExpressionParser.EvalLengthContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalLength().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalLengthin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalLengthin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalHashCode
public BaseExpression visitEvalHashCode(PredicateExpressionParser.EvalHashCodeContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalHashCode().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalHashCodein interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalHashCodein classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalIsEmpty
public BaseExpression visitEvalIsEmpty(PredicateExpressionParser.EvalIsEmptyContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalIsEmpty().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalIsEmptyin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalIsEmptyin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalIsNotEmpty
public BaseExpression visitEvalIsNotEmpty(PredicateExpressionParser.EvalIsNotEmptyContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalIsNotEmpty().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalIsNotEmptyin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalIsNotEmptyin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalIsBlank
public BaseExpression visitEvalIsBlank(PredicateExpressionParser.EvalIsBlankContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalIsBlank().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalIsBlankin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalIsBlankin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalIsNotBlank
public BaseExpression visitEvalIsNotBlank(PredicateExpressionParser.EvalIsNotBlankContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.evalIsNotBlank().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalIsNotBlankin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitEvalIsNotBlankin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRandom
public BaseExpression visitRandom(PredicateExpressionParser.RandomContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.random().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRandomin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitRandomin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAsString
public BaseExpression visitAsString(PredicateExpressionParser.AsStringContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.asString().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAsStringin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitAsStringin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStrIff
public BaseExpression visitStrIff(PredicateExpressionParser.StrIffContext ctx)
Description copied from class:PredicateExpressionBaseVisitorVisit a parse tree produced byPredicateExpressionParser.strIff().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStrIffin interfacePredicateExpressionVisitor<BaseExpression>- Overrides:
visitStrIffin classPredicateExpressionBaseVisitor<BaseExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-