Class UriEncode
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.fn.FunctionDefinition
-
- software.amazon.smithy.rulesengine.language.stdlib.UriEncode
-
public final class UriEncode extends FunctionDefinition
A rule-set function for URI encoding a string.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor Description UriEncode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Valueevaluate(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.StringgetId()The ID of this function.TypegetReturnType()The return type of this function definition.static FunctionofExpression(Expression expression)
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from class:FunctionDefinitionThe ID of this function.- Specified by:
getIdin classFunctionDefinition- Returns:
- The ID string
-
getArguments
public java.util.List<Type> getArguments()
Description copied from class:FunctionDefinitionThe arguments to this function.- Specified by:
getArgumentsin classFunctionDefinition- Returns:
- The function arguments
-
getReturnType
public Type getReturnType()
Description copied from class:FunctionDefinitionThe return type of this function definition.- Specified by:
getReturnTypein classFunctionDefinition- Returns:
- The function return type
-
evaluate
public Value evaluate(java.util.List<Value> arguments)
Description copied from class:FunctionDefinitionEvaluate the arguments to a given function to compute a result.- Specified by:
evaluatein classFunctionDefinition- Returns:
- The resulting value
-
ofExpression
public static Function ofExpression(Expression expression)
-
-