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
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Value.Array
static Value.Bool
bool
(boolean value) static Value.Endpoint
endpointFromNode
(Node source) boolean
int
static Value
Gets the source location of a value.static Value.Integer
integer
(int value) boolean
isNone()
static Value
none()
static Value.Record
record
(Map<Identifier, Value> value) static Value.String
abstract Type
type()
-
Constructor Details
-
Value
-
-
Method Details
-
fromNode
-
endpointFromNode
-
none
-
string
-
record
-
bool
-
array
-
integer
-
type
-
expectString
-
expectBool
public boolean expectBool() -
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.
-
expectRecord
-
isNone
public boolean isNone() -
expectEndpoint
-
expectArray
-
expectInteger
public int expectInteger()
-