Class Parameters
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.parameters.Parameters
- All Implemented Interfaces:
- Iterable<Parameter>,- FromSourceLocation,- ToNode,- ToSmithyBuilder<Parameters>
public final class Parameters
extends Object
implements FromSourceLocation, ToNode, ToSmithyBuilder<Parameters>, Iterable<Parameter>
An iterable container for 
Parameters defined in a rule-set.- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic Parameters.Builderbuilder()Builder to create aParametersinstance.booleanvoidstatic ParametersfromNode(ObjectNode node) Creates aParametersinstance from the given Node information.get(Identifier name) Gets the parameter for the given name.Gets the source location of a value.inthashCode()iterator()Take this object and create a builder that contains all of the current property values of this object.toNode()Converts a value to aNode.toString()voidwriteToScope(Scope<Type> scope) Writes the parameters in this collection to the given scope.
- 
Method Details- 
builderBuilder to create aParametersinstance.- Returns:
- returns a new Builder.
 
- 
fromNodeCreates aParametersinstance from the given Node information.- Parameters:
- node- the node to deserialize.
- Returns:
- the created Parameters.
- Throws:
- RuleError
 
- 
writeToScopeWrites the parameters in this collection to the given scope.- Parameters:
- scope- the scope
 
- 
getSourceLocationDescription copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
- getSourceLocationin interface- FromSourceLocation
- Returns:
- Returns the source location of the value.
 
- 
getGets the parameter for the given name.- Returns:
- returns an optional containing the parameter if present, empty otherwise.
 
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.
- 
toBuilderDescription copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToSmithyBuilder<Parameters>
- Returns:
- a builder for type T
 
- 
iterator
- 
forEach
- 
spliterator- Specified by:
- spliteratorin interface- Iterable<Parameter>
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-