Class IsSet
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
-
- software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
-
- software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
-
- software.amazon.smithy.rulesengine.language.syntax.expressions.functions.IsSet
-
- All Implemented Interfaces:
FromSourceLocation,ToNode,TypeCheck,ToCondition,ToExpression
public final class IsSet extends LibraryFunction
A rule-set function for determining whether a reference parameter is set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIsSet.DefinitionAFunctionDefinitionfor theIsSetfunction.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID-
Fields inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
definition, 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.static IsSet.DefinitiongetDefinition()Gets theFunctionDefinitionimplementation.static IsSetofExpressions(ToExpression arg1)Creates aIsSetfunction from the given expressions.protected TypetypeCheckLocal(Scope<Type> scope)-
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
equals, expectOneArgument, getArguments, getName, getSourceLocation, hashCode, toNode, toString
-
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
fromNode, getLiteral, getReference, of, of, of, parseShortform, toConditionBuilder, toExpression, type, typeCheck
-
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
booleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, template
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToCondition
toCondition, toCondition
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefinition
public static IsSet.Definition getDefinition()
Gets theFunctionDefinitionimplementation.- Returns:
- the function definition.
-
ofExpressions
public static IsSet ofExpressions(ToExpression arg1)
Creates aIsSetfunction from the given expressions.- Parameters:
arg1- the expression to negate.- Returns:
- The resulting
IsSetfunction.
-
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.
-
typeCheckLocal
protected Type typeCheckLocal(Scope<Type> scope)
- Overrides:
typeCheckLocalin classLibraryFunction
-
-