Class Condition
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
software.amazon.smithy.rulesengine.language.syntax.rule.Condition
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- TypeCheck,- ToCondition,- ToExpression
A condition is call to a rule-set function that used to determine whether a rule should be executed.
 Can assign the results of functions to new parameters within the current scope.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic Condition.Builderbuilder()Builder to create aConditioninstance.booleanstatic ConditionConstructs a condition from the given node.Gets the function used to express this condition.Get the identifier of the parameter that the result is assigned to.Gets the source location of a value.inthashCode()Convert this into a condition.Convert this into a condition builder for compositional use.Convert this into an expression.toNode()Converts a value to aNode.toString()Checks whether the given types within a scope satisfy the constraints.Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElementbooleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, templateMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToConditiontoCondition
- 
Field Details- 
ASSIGN- See Also:
 
 
- 
- 
Method Details- 
builderBuilder to create aConditioninstance.- Returns:
- returns a new Builder.
 
- 
fromNodeConstructs a condition from the given node.- Parameters:
- node- the node.
- Returns:
- the condition instance.
 
- 
getSourceLocationDescription copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
- getSourceLocationin interface- FromSourceLocation
- Returns:
- Returns the source location of the value.
 
- 
getResultGet the identifier of the parameter that the result is assigned to.- Returns:
- the optional identifier.
 
- 
getFunctionGets the function used to express this condition.- Returns:
- the function for this condition.
 
- 
toConditionBuilderDescription copied from interface:ToConditionConvert this into a condition builder for compositional use.- Specified by:
- toConditionBuilderin interface- ToCondition
- Returns:
- the condition builder.
 
- 
toConditionDescription copied from interface:ToConditionConvert this into a condition.- Specified by:
- toConditionin interface- ToCondition
- Returns:
- the condition.
 
- 
toExpressionDescription copied from interface:ToExpressionConvert this into an expression.- Specified by:
- toExpressionin interface- ToExpression
- Returns:
- the expression.
 
- 
toBuilder
- 
typeCheckDescription copied from interface:TypeCheckChecks whether the given types within a scope satisfy the constraints.
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-