| Package | Description |
|---|---|
| com.io7m.jsx.combinators |
Combinators for validating and extracting data from S-expressions.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
JSXValidationError |
An error produced during validation of an S-expression.
|
| Modifier and Type | Method | Description |
|---|---|---|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionListType> |
JSXCombinators.anyList(SExpressionType e) |
Assert that the given expression is a list.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
JSXCombinators.anyOfQuotedString(SExpressionType e,
io.vavr.collection.List<java.lang.String> texts) |
Assert that the given expression is a symbol with any of the given names.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
JSXCombinators.anyOfSymbol(SExpressionType e,
io.vavr.collection.List<java.lang.String> names) |
Assert that the given expression is a symbol with any of the given names.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
JSXCombinators.anyQuotedString(SExpressionType e) |
Assert that the given expression is a quoted string.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
JSXCombinators.anySymbol(SExpressionType e) |
Assert that the given expression is a symbol.
|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T> |
JSXCombinators.atListElement(SExpressionListType e,
int index,
java.util.function.Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver) |
Retrieve a value from a list.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
JSXCombinators.exactQuotedString(SExpressionType e,
java.lang.String name) |
Assert that the given expression is a quoted string with the given name.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
JSXCombinators.exactSymbol(SExpressionType e,
java.lang.String name) |
Assert that the given expression is a symbol with the given name.
|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,io.vavr.collection.List<T>> |
JSXCombinators.listMap(SExpressionListType e,
java.util.function.Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver) |
Apply a validation function to each element of the given list expression.
|
| Modifier and Type | Method | Description |
|---|---|---|
static JSXValidationError |
JSXValidationError.copyOf(JSXValidationErrorType instance) |
Creates an immutable copy of a
JSXValidationErrorType value. |
JSXValidationError.Builder |
JSXValidationError.Builder.from(JSXValidationErrorType instance) |
Fill a builder with attribute values from the provided
JSXValidationErrorType instance. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T> |
JSXCombinators.atListElement(SExpressionListType e,
int index,
java.util.function.Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver) |
Retrieve a value from a list.
|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,io.vavr.collection.List<T>> |
JSXCombinators.listMap(SExpressionListType e,
java.util.function.Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver) |
Apply a validation function to each element of the given list expression.
|
Copyright © 2017 <code@io7m.com> http://io7m.com