Class Parameters
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.parameters.Parameters
-
- All Implemented Interfaces:
FromSourceLocation,ToNode,ToSmithyBuilder<Parameters>
public final class Parameters extends java.lang.Object implements FromSourceLocation, ToNode, ToSmithyBuilder<Parameters>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameters.Builder
-
Constructor Summary
Constructors Constructor Description Parameters(Parameters.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Parameters.Builderbuilder()booleanequals(java.lang.Object o)static ParametersfromNode(ObjectNode node)java.util.Optional<Parameter>get(Identifier name)SourceLocationgetSourceLocation()Gets the source location of a value.inthashCode()Parameters.BuildertoBuilder()Take this object and create a builder that contains all of the current property values of this object.java.util.List<Parameter>toList()NodetoNode()Converts a value to aNode.java.lang.StringtoString()voidwriteToScope(Scope<Type> scope)
-
-
-
Constructor Detail
-
Parameters
public Parameters(Parameters.Builder builder)
-
-
Method Detail
-
builder
public static Parameters.Builder builder()
-
fromNode
public static Parameters fromNode(ObjectNode node) throws RuleError
- Throws:
RuleError
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toBuilder
public Parameters.Builder 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
-
toList
public java.util.List<Parameter> toList()
-
getSourceLocation
public SourceLocation 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
public java.util.Optional<Parameter> get(Identifier name)
-
-