Class ExpressionVisitor.Default<R>
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.expressions.ExpressionVisitor.Default<R>
-
- All Implemented Interfaces:
ExpressionVisitor<R>
- Direct Known Subclasses:
TraversingVisitor
- Enclosing interface:
- ExpressionVisitor<R>
public abstract static class ExpressionVisitor.Default<R> extends java.lang.Object implements ExpressionVisitor<R>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.smithy.rulesengine.language.syntax.expressions.ExpressionVisitor
ExpressionVisitor.Default<R>
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract R
getDefault()
R
visitBoolEquals(Expression left, Expression right)
Does a boolean equality check.R
visitGetAttr(GetAttr getAttr)
Visits a GetAttr function.R
visitIsSet(Expression fn)
Visits an isSet function.R
visitLibraryFunction(FunctionDefinition fn, java.util.List<Expression> args)
Visits a library function.R
visitLiteral(Literal literal)
Visits a literal.R
visitNot(Expression not)
Visits a not function.R
visitRef(Reference reference)
Visits a reference.R
visitStringEquals(Expression left, Expression right)
Does a string equality check.
-
-
-
Method Detail
-
getDefault
public abstract R getDefault()
-
visitLiteral
public R visitLiteral(Literal literal)
Description copied from interface:ExpressionVisitor
Visits a literal.- Specified by:
visitLiteral
in interfaceExpressionVisitor<R>
- Parameters:
literal
- the literal to visit.- Returns:
- the value from the visitor.
-
visitRef
public R visitRef(Reference reference)
Description copied from interface:ExpressionVisitor
Visits a reference.- Specified by:
visitRef
in interfaceExpressionVisitor<R>
- Parameters:
reference
- the reference to visit.- Returns:
- the value from the visitor.
-
visitGetAttr
public R visitGetAttr(GetAttr getAttr)
Description copied from interface:ExpressionVisitor
Visits a GetAttr function.- Specified by:
visitGetAttr
in interfaceExpressionVisitor<R>
- Parameters:
getAttr
- the GetAttr function to visit.- Returns:
- the value from the visitor.
-
visitIsSet
public R visitIsSet(Expression fn)
Description copied from interface:ExpressionVisitor
Visits an isSet function.- Specified by:
visitIsSet
in interfaceExpressionVisitor<R>
- Parameters:
fn
- the isSet function to visit.- Returns:
- the value from the visitor.
-
visitNot
public R visitNot(Expression not)
Description copied from interface:ExpressionVisitor
Visits a not function.- Specified by:
visitNot
in interfaceExpressionVisitor<R>
- Parameters:
not
- the not function to visit.- Returns:
- the value from the visitor.
-
visitBoolEquals
public R visitBoolEquals(Expression left, Expression right)
Description copied from interface:ExpressionVisitor
Does a boolean equality check.- Specified by:
visitBoolEquals
in interfaceExpressionVisitor<R>
- Parameters:
left
- the first value to compare.right
- the second value to compare.- Returns:
- the value from the visitor.
-
visitStringEquals
public R visitStringEquals(Expression left, Expression right)
Description copied from interface:ExpressionVisitor
Does a string equality check.- Specified by:
visitStringEquals
in interfaceExpressionVisitor<R>
- Parameters:
left
- the first value to compare.right
- the second value to compare.- Returns:
- the value from the visitor.
-
visitLibraryFunction
public R visitLibraryFunction(FunctionDefinition fn, java.util.List<Expression> args)
Description copied from interface:ExpressionVisitor
Visits a library function.- Specified by:
visitLibraryFunction
in interfaceExpressionVisitor<R>
- Parameters:
fn
- the library function to visit.args
- the arguments to the function being visited.- Returns:
- the value from the visitor.
-
-