public final class JSXCombinators extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionListType> |
anyList(SExpressionType e) |
Assert that the given expression is a list.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
anyOfQuotedString(SExpressionType e,
io.vavr.collection.List<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> |
anyOfSymbol(SExpressionType e,
io.vavr.collection.List<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> |
anyQuotedString(SExpressionType e) |
Assert that the given expression is a quoted string.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
anySymbol(SExpressionType e) |
Assert that the given expression is a symbol.
|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T> |
atListElement(SExpressionListType e,
int index,
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> |
exactQuotedString(SExpressionType e,
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> |
exactSymbol(SExpressionType e,
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>> |
listMap(SExpressionListType e,
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.
|
public static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T> atListElement(SExpressionListType e, int index, Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver)
T - The type of returned valuese - The list expressionindex - The list indexreceiver - The receiver
receiver to the list element, or an invalid value if the list index is out
of rangepublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> exactSymbol(SExpressionType e, String name)
e - The expressionname - The symbol namee is not a symbol with
the given namepublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> anyOfSymbol(SExpressionType e, io.vavr.collection.List<String> names)
e - The expressionnames - The symbol namese is not a symbol with
the given namepublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> exactQuotedString(SExpressionType e, String name)
e - The expressionname - The quoted string namee is not a quoted
string with the given namepublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> anyOfQuotedString(SExpressionType e, io.vavr.collection.List<String> texts)
e - The expressiontexts - The quoted string textse is not a symbol with
the given namepublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> anySymbol(SExpressionType e)
e - The expressione is not a symbolpublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionListType> anyList(SExpressionType e)
e - The expressione is not a listpublic static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> anyQuotedString(SExpressionType e)
e - The expressione is not a quoted
stringpublic static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,io.vavr.collection.List<T>> listMap(SExpressionListType e, Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver)
T - The type of returned elementse - The list expressionreceiver - The validation functionCopyright © 2017 <code@io7m.com> http://io7m.com