Class IsSet
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.IsSet
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,Into<Condition>
,TypeCheck
A rule-set function for determining whether a reference parameter is set.
-
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.static IsSet
ofExpression
(Expression expression) Returns a new IsSet function taking the given expression as an argument.protected Type
typeCheckArgument
(Scope<Type> scope, Type.Option arg) protected Type
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
-
IsSet
-
-
Method Details
-
ofExpression
Returns a new IsSet function taking the given expression as an argument.- Parameters:
expression
- the argument to IsSet.- Returns:
- new IsSet instance.
-
typeCheckArgument
-
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.
-
getTarget
-
typeCheckLocal
- Specified by:
typeCheckLocal
in classExpression
-