Class LibraryFunction
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
- All Implemented Interfaces:
FromSourceLocation,ToNode,TypeCheck,ToCondition,ToExpression
- Direct Known Subclasses:
AwsPartition,BooleanEquals,GetAttr,IsSet,IsValidHostLabel,IsVirtualHostableS3Bucket,Not,ParseArn,ParseUrl,StringEquals,Substring,UriEncode
A function which is constructed from a
FunctionDefinition.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ExpressiongetName()Returns the name of this function, eg.Gets the source location of a value.inthashCode()toNode()Converts a value to aNode.toString()protected TypetypeCheckLocal(Scope<Type> scope) Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
accept, fromNode, getLiteral, getReference, of, of, of, parseShortform, toConditionBuilder, toExpression, type, typeCheckMethods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
booleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, templateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToCondition
toCondition, toCondition
-
Field Details
-
definition
-
functionNode
-
-
Constructor Details
-
LibraryFunction
-
-
Method Details
-
getName
Returns the name of this function, eg.isSet,parseUrl- Returns:
- The name
-
getArguments
- Returns:
- The arguments to this function
-
expectOneArgument
-
getSourceLocation
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Overrides:
getSourceLocationin classExpression- Returns:
- Returns the source location of the value.
-
typeCheckLocal
- Specified by:
typeCheckLocalin classExpression
-
toNode
Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
-
equals
- Specified by:
equalsin classExpression
-
hashCode
public int hashCode()- Specified by:
hashCodein classExpression
-
toString
-