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
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Parameter.Builderbuilder()equal(boolean b) Provides a function comparing this parameter to a boolean value.equal(Expression expression) Provides a function comparing this parameter to expression.booleanstatic ParameterfromNode(StringNode name, ObjectNode node) The default value for this Parameter.getName()Gets the source location of a value.getType()getValue()inthashCode()booleanbooleantemplate()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:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin 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:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<Parameter>- Returns:
- a builder for type T
-
template
-
toNode
Description copied from interface:ToNodeConverts 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.
-