Interface ToCondition
- All Known Implementing Classes:
AwsPartition,BooleanEquals,BooleanLiteral,Coalesce,Condition,Expression,GetAttr,IntegerLiteral,IsSet,IsValidHostLabel,IsVirtualHostableS3Bucket,LibraryFunction,Literal,Not,Parameter,ParseArn,ParseUrl,RecordLiteral,Reference,Split,StringEquals,StringLiteral,Substring,SyntaxElement,TupleLiteral,UriEncode
public interface ToCondition
Supplies functionality to be coercible into
Conditions for
use in composing rule-sets in code.-
Method Summary
Modifier and TypeMethodDescriptiondefault ConditionConvert this into a condition.default ConditiontoCondition(String result) Converts this function into a condition which stores the output in the named result.default Condition.BuilderConvert this into a condition builder for compositional use.
-
Method Details
-
toConditionBuilder
Convert this into a condition builder for compositional use.- Returns:
- the condition builder.
- Throws:
UnsupportedOperationException- if this cannot be converted to a condition.
-
toCondition
Convert this into a condition.- Returns:
- the condition.
-
toCondition
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.
-