Class GetAttr.Definition
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.expressions.functions.GetAttr.Definition
-
- All Implemented Interfaces:
FunctionDefinition
- Enclosing class:
- GetAttr
public static final class GetAttr.Definition extends java.lang.Object implements FunctionDefinition
AFunctionDefinition
for theGetAttr
function.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAttr
createFunction(FunctionNode functionNode)
Creates aLibraryFunction
implementation from the givenFunctionNode
.Value
evaluate(java.util.List<Value> arguments)
Evaluate the arguments to a given function to compute a result.java.util.List<Type>
getArguments()
The arguments to this function.java.lang.String
getId()
The ID of this function.Type
getReturnType()
The return type of this function definition.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:FunctionDefinition
The ID of this function.- Specified by:
getId
in interfaceFunctionDefinition
- Returns:
- The ID string
-
getArguments
public java.util.List<Type> getArguments()
Description copied from interface:FunctionDefinition
The arguments to this function.- Specified by:
getArguments
in interfaceFunctionDefinition
- Returns:
- The function arguments
-
getReturnType
public Type getReturnType()
Description copied from interface:FunctionDefinition
The return type of this function definition.- Specified by:
getReturnType
in interfaceFunctionDefinition
- Returns:
- The function return type
-
evaluate
public Value evaluate(java.util.List<Value> arguments)
Description copied from interface:FunctionDefinition
Evaluate the arguments to a given function to compute a result.- Specified by:
evaluate
in interfaceFunctionDefinition
- Returns:
- The resulting value
-
createFunction
public GetAttr createFunction(FunctionNode functionNode)
Description copied from interface:FunctionDefinition
Creates aLibraryFunction
implementation from the givenFunctionNode
.- Specified by:
createFunction
in interfaceFunctionDefinition
- Parameters:
functionNode
- the function node to deserialize.- Returns:
- the created LibraryFunction implementation.
-
-