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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert this function into a condition.Converts this function into a condition which stores the output in the named result.booleanprotected ExpressiongetName()Returns the name of this function, eg.Gets the source location of a value.inthashCode()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:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Overrides:
getSourceLocationin classMandatorySourceLocation- Returns:
- Returns the source location of the value.
-
equals
- Specified by:
equalsin classExpression
-
hashCode
public int hashCode()- Specified by:
hashCodein classExpression
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
into
-