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 Summary
Nested Classes -
Method Summary
Modifier 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
-
builder
Builder to create aParametersinstance.- Returns:
- returns a new Builder.
-
fromNode
Creates aParametersinstance from the given Node information.- Parameters:
node- the node to deserialize.- Returns:
- the created Parameters.
- Throws:
RuleError
-
writeToScope
Writes the parameters in this collection to the given scope.- Parameters:
scope- the scope
-
getSourceLocation
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
get
Gets the parameter for the given name.- Returns:
- returns an optional containing the parameter if present, empty otherwise.
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<Parameters>- Returns:
- a builder for type T
-
iterator
-
forEach
-
spliterator
- Specified by:
spliteratorin interfaceIterable<Parameter>
-
equals
-
hashCode
public int hashCode() -
toString
-