public abstract class Value extends Object
RuleEngine
.Modifier and Type | Class and Description |
---|---|
static class |
Value.Array
An array value.
|
static class |
Value.Bool
A boolean value.
|
static class |
Value.Endpoint |
static class |
Value.Int
An integer value.
|
static class |
Value.None |
static class |
Value.Record
A record (map) value.
|
static class |
Value.Str
A string value.
|
Constructor and Description |
---|
Value() |
Modifier and Type | Method and Description |
---|---|
static Value.Endpoint |
endpointFromNode(JsonNode source) |
Value.Array |
expectArray() |
boolean |
expectBool() |
Value.Endpoint |
expectEndpoint() |
int |
expectInt() |
Value.Record |
expectRecord() |
String |
expectString() |
static Value.Array |
fromArray(List<Value> value) |
static Value.Bool |
fromBool(boolean value) |
static Value.Int |
fromInteger(int value) |
static Value |
fromNode(JsonNode node) |
static Value.Record |
fromRecord(Map<Identifier,Value> value) |
static Value.Str |
fromStr(String value) |
boolean |
isNone() |
static Value.None |
none() |
public boolean isNone()
public String expectString()
public boolean expectBool()
public Value.Record expectRecord()
public Value.Endpoint expectEndpoint()
public Value.Array expectArray()
public int expectInt()
public static Value.Endpoint endpointFromNode(JsonNode source)
public static Value.Int fromInteger(int value)
public static Value.Bool fromBool(boolean value)
public static Value.Array fromArray(List<Value> value)
public static Value.Record fromRecord(Map<Identifier,Value> value)
public static Value.None none()
Copyright © 2023. All rights reserved.