Class BooleanEquals
java.lang.Object
software.amazon.smithy.rulesengine.language.util.MandatorySourceLocation
software.amazon.smithy.rulesengine.language.syntax.expr.Expression
software.amazon.smithy.rulesengine.language.syntax.fn.Function
software.amazon.smithy.rulesengine.language.stdlib.BooleanEquals
- All Implemented Interfaces:
FromSourceLocation,ToNode,Into<Condition>,TypeCheck
Represents a two argument function that compares two expression for boolean equality.
-
Field Summary
FieldsFields inherited from class software.amazon.smithy.rulesengine.language.syntax.fn.Function
functionNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ExpressionVisitor<R> visitor) Invoke theExpressionVisitorfunctions for this expression.static FunctionofExpressions(Expression left, Expression right) Returns a BooleanEqualsFunctioncomparing the left and right expressions for equality.protected TypetypeCheckLocal(Scope<Type> scope) Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.fn.Function
condition, condition, equals, expectOneArgument, getArguments, getName, getSourceLocation, hashCode, into, toNode, toString
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
BooleanEquals
-
-
Method Details
-
ofExpressions
Returns a BooleanEqualsFunctioncomparing the left and right expressions for equality.- Parameters:
left- the left hand-side expression.right- the right hand-side expression.- Returns:
- the function defining the BooleanEquals of the left and right expressions.
-
accept
Description copied from class:ExpressionInvoke theExpressionVisitorfunctions for this expression.- Specified by:
acceptin classExpression- Type Parameters:
R- the visitor return type.- Parameters:
visitor- the visitor to be invoked.- Returns:
- the return value of the visitor.
-
typeCheckLocal
- Specified by:
typeCheckLocalin classExpression- Throws:
InnerParseError
-