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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID-
Fields inherited from class software.amazon.smithy.rulesengine.language.syntax.fn.Function
functionNode
-
-
Constructor Summary
Constructors Constructor Description IsSet(FunctionNode functionNode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(ExpressionVisitor<R> visitor)Invoke theExpressionVisitorfunctions for this expression.ExpressiongetTarget()static IsSetofExpression(Expression expression)Returns a new IsSet function taking the given expression as an argument.protected TypetypeCheckArgument(Scope<Type> scope, Type.Option arg)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 Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IsSet
public IsSet(FunctionNode functionNode)
-
-
Method Detail
-
ofExpression
public static IsSet ofExpression(Expression expression)
Returns a new IsSet function taking the given expression as an argument.- Parameters:
expression- the argument to IsSet.- Returns:
- new IsSet instance.
-
typeCheckArgument
protected Type typeCheckArgument(Scope<Type> scope, Type.Option arg)
-
accept
public <R> R accept(ExpressionVisitor<R> visitor)
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.
-
getTarget
public Expression getTarget()
-
typeCheckLocal
protected Type typeCheckLocal(Scope<Type> scope)
- Specified by:
typeCheckLocalin classExpression
-
-