Class Value
java.lang.Object
software.amazon.smithy.rulesengine.language.eval.Value
- All Implemented Interfaces:
FromSourceLocation,ToNode
- Direct Known Subclasses:
Value.Array,Value.Bool,Value.Endpoint,Value.Integer,Value.None,Value.Record,Value.String
An abstract representing a typed value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Value.Arraystatic Value.Boolbool(boolean value) static Value.EndpointendpointFromNode(Node source) booleanintstatic ValueGets the source location of a value.static Value.Integerinteger(int value) booleanisNone()static Valuenone()static Value.Recordrecord(Map<Identifier, Value> value) static Value.Stringabstract Typetype()
-
Constructor Details
-
Value
-
-
Method Details
-
fromNode
-
endpointFromNode
-
none
-
string
-
record
-
bool
-
array
-
integer
-
type
-
expectString
-
expectBool
public boolean expectBool() -
getSourceLocation
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
expectRecord
-
isNone
public boolean isNone() -
expectEndpoint
-
expectArray
-
expectInteger
public int expectInteger()
-