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
Parameter
s defined in a rule-set.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parameters.Builder
builder()
Builder to create aParameters
instance.boolean
void
static Parameters
fromNode
(ObjectNode node) Creates aParameters
instance from the given Node information.get
(Identifier name) Gets the parameter for the given name.Gets the source location of a value.int
hashCode()
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()
void
writeToScope
(Scope<Type> scope) Writes the parameters in this collection to the given scope.
-
Method Details
-
builder
Builder to create aParameters
instance.- Returns:
- returns a new Builder.
-
fromNode
Creates aParameters
instance 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:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in 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:ToNode
Converts a value to aNode
. -
toBuilder
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<Parameters>
- Returns:
- a builder for type T
-
iterator
-
forEach
-
spliterator
- Specified by:
spliterator
in interfaceIterable<Parameter>
-
equals
-
hashCode
public int hashCode() -
toString
-