Class FunctionDefinition
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.fn.FunctionDefinition
-
- Direct Known Subclasses:
AwsIsVirtualHostableS3Bucket,AwsPartition,IsValidHostLabel,ParseArn,ParseUrl,Substring,UriEncode
public abstract class FunctionDefinition extends java.lang.ObjectAn abstract definition of a rule-engine function.
-
-
Constructor Summary
Constructors Constructor Description FunctionDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Valueevaluate(java.util.List<Value> arguments)Evaluate the arguments to a given function to compute a result.abstract java.util.List<Type>getArguments()The arguments to this function.abstract java.lang.StringgetId()The ID of this function.abstract TypegetReturnType()The return type of this function definition.
-
-
-
Method Detail
-
getId
public abstract java.lang.String getId()
The ID of this function.- Returns:
- The ID string
-
getArguments
public abstract java.util.List<Type> getArguments()
The arguments to this function.- Returns:
- The function arguments
-
getReturnType
public abstract Type getReturnType()
The return type of this function definition.- Returns:
- The function return type
-
-