Class Not
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.syntax.fn.Not
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,Into<Condition>
,TypeCheck
-
Field Summary
Fields inherited from class software.amazon.smithy.rulesengine.language.syntax.fn.Function
functionNode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R> R
accept
(ExpressionVisitor<R> visitor) Invoke theExpressionVisitor
functions for this expression.Returns the expression argument to Not.static Not
ofExpression
(Expression expression) Constructs a Not function with the given expression as argument.protected Type
typeCheckArgument
(Scope<Type> scope, Type.Bool arg) typeCheckLocal
(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
-
Not
-
-
Method Details
-
ofExpression
Constructs a Not function with the given expression as argument.- Parameters:
expression
- the expression to pass to Not.- Returns:
- the Not function.
-
getTarget
Returns the expression argument to Not.- Returns:
- the expression argument.
-
accept
Description copied from class:Expression
Invoke theExpressionVisitor
functions for this expression.- Specified by:
accept
in classExpression
- Type Parameters:
R
- the visitor return type.- Parameters:
visitor
- the visitor to be invoked.- Returns:
- the return value of the visitor.
-
typeCheckLocal
-
typeCheckArgument
-