Class Parameter
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.parameters.Parameter
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToSmithyBuilder<Parameter>
public final class Parameter
extends Object
implements ToSmithyBuilder<Parameter>, FromSourceLocation, ToNode
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parameter.Builder
builder()
equal
(boolean b) Provides a function comparing this parameter to a boolean value.equal
(Expression expression) Provides a function comparing this parameter to expression.boolean
static Parameter
fromNode
(StringNode name, ObjectNode node) The default value for this Parameter.getName()
Gets the source location of a value.getType()
getValue()
int
hashCode()
boolean
boolean
template()
Take this object and create a builder that contains all of the current property values of this object.Provides a reference to this parameter as an expression.toNode()
Converts a value to aNode
.toString()
toType()
-
Field Details
-
TYPE
- See Also:
-
DEPRECATED
- See Also:
-
DOCUMENTATION
- See Also:
-
DEFAULT
- See Also:
-
-
Method Details
-
fromNode
- Throws:
RuleError
-
builder
-
getBuiltIn
-
getDefaultValue
-
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.
-
getDeprecated
-
isRequired
public boolean isRequired() -
getType
-
toType
-
getName
-
isBuiltIn
public boolean isBuiltIn() -
getValue
-
hashCode
public int hashCode() -
equals
-
toString
-
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<Parameter>
- Returns:
- a builder for type T
-
template
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
toExpression
Provides a reference to this parameter as an expression.- Returns:
- the reference to the parameter.
-
equal
Provides a function comparing this parameter to a boolean value.- Parameters:
b
- the boolean value to compare the parameter to.- Returns:
- the BooleanEquals function comparing the parameter.
-
equal
Provides a function comparing this parameter to expression.- Parameters:
expression
- the expression.- Returns:
- the BooleanEquals function comparing the parameter.
-
getDocumentation
-
getDefault
The default value for this Parameter.- Returns:
- The value. This value must match the type of this parameter.
-