Class Function
java.lang.Object
software.amazon.smithy.rulesengine.language.util.MandatorySourceLocation
software.amazon.smithy.rulesengine.language.syntax.expr.Expression
software.amazon.smithy.rulesengine.language.syntax.fn.Function
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,Into<Condition>
,TypeCheck
- Direct Known Subclasses:
BooleanEquals
,IsSet
,LibraryFunction
,Not
,StringEquals
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert this function into a condition.Converts this function into a condition which stores the output in the named result.boolean
protected Expression
getName()
Returns the name of this function, eg.Gets the source location of a value.int
hashCode()
into()
toNode()
Converts a value to aNode
.toString()
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expr.Expression
accept, equal, equal, fromNode, getAttr, getAttr, isSet, isValidHostLabel, isVirtualHostableS3Bucket, literal, not, of, of, of, parseArn, parseShortform, parseUrl, reference, substring, template, type, typeCheck, typeCheckLocal
-
Field Details
-
functionNode
-
-
Constructor Details
-
Function
-
-
Method Details
-
condition
Convert this function into a condition.- Returns:
- the function as a condition.
-
condition
Converts this function into a condition which stores the output in the named result.- Parameters:
result
- the name of the result parameter.- Returns:
- the function as a condition.
-
getName
Returns the name of this function, eg.isSet
,parseUrl
- Returns:
- The name
-
getArguments
- Returns:
- The arguments to this function
-
toString
-
expectOneArgument
-
getSourceLocation
Description copied from interface:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Overrides:
getSourceLocation
in classMandatorySourceLocation
- Returns:
- Returns the source location of the value.
-
equals
- Specified by:
equals
in classExpression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
into
-