Package org.mule.datasense.impl.util
Class Parsers
java.lang.Object
org.mule.datasense.impl.util.Parsers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Parser<?>begin()static <B> Parser<B>static Parser<?>empty()static Parser<?>end()static <B> Parser<B>static <A,B, R> Function<Parsers.Pair<A, B>, R> match(BiFunction<A, B, R> f) Match two values, like the result of string("A").then(string("B"))static <A,R> Function<A, R> Match a single value, like the result of string("A") - note that match is mostly useful when dealing with multiple values.static <A,B, C, R> Function<Parsers.Pair<Parsers.Pair<A, B>, C>, R> match(Parsers.Function3<A, B, C, R> f) Match three values, like the result of string("A").then(string("B")).then(string("C"))static <A,B, C, D, R>
Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,B>, C>, D>, R> match(Parsers.Function4<A, B, C, D, R> f) Match four values, like the result of string("A").then(string("B")).then(string("C")).then(string("D"))static <A,B, C, D, E, R>
Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,B>, C>, D>, E>, R> match(Parsers.Function5<A, B, C, D, E, R> f) Match five values, like the result of string("A").then(string("B")).then(string("C")).then(string("D")).then(string("E"))static <A,B, C, D, E, F, R>
Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,B>, C>, D>, E>, F>, R> match(Parsers.Function6<A, B, C, D, E, F, R> f) Match six values, like the result of string("A").then(string("B")).then(string("C"))...then(string("F"))static <A,B, C, D, E, F, G, R>
Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,B>, C>, D>, E>, F>, G>, R> match(Parsers.Function7<A, B, C, D, E, F, G, R> f) Match seven values, like the result of string("A").then(string("B")).then(string("C"))...then(string("G"))static <A,B, C, D, E, F, G, H, R>
Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,B>, C>, D>, E>, F>, G>, H>, R> match(Parsers.Function8<A, B, C, D, E, F, G, H, R> f) Match eight values, like the result of string("A").then(string("B")).then(string("C"))...then(string("H"))static <A,B, C, D, E, F, G, H, I, R>
Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,B>, C>, D>, E>, F>, G>, H>, I>, R> match(Parsers.Function9<A, B, C, D, E, F, G, H, I, R> f) Match nine values, like the result of string("A").then(string("B")).then(string("C"))...then(string("I"))static Parser<MatchResult>static Parser<MatchResult>static Parsers.SkipParserstatic <B> Parser<B>success(B value) static <B> Parser<B>
-
Field Details
-
unit
-
-
Constructor Details
-
Parsers
public Parsers()
-
-
Method Details
-
empty
-
success
-
failure
-
choice
-
skip
-
then
-
begin
-
end
-
string
-
regex
-
regex
-
match
Match a single value, like the result of string("A") - note that match is mostly useful when dealing with multiple values. -
match
Match two values, like the result of string("A").then(string("B")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<A,C, R> B>, matchC>, R> (Parsers.Function3<A, B, C, R> f) Match three values, like the result of string("A").then(string("B")).then(string("C")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,C, D, R> B>, matchC>, D>, R> (Parsers.Function4<A, B, C, D, R> f) Match four values, like the result of string("A").then(string("B")).then(string("C")).then(string("D")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,C, D, E, R> B>, matchC>, D>, E>, R> (Parsers.Function5<A, B, C, D, E, R> f) Match five values, like the result of string("A").then(string("B")).then(string("C")).then(string("D")).then(string("E")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,C, D, E, F, R> B>, matchC>, D>, E>, F>, R> (Parsers.Function6<A, B, C, D, E, F, R> f) Match six values, like the result of string("A").then(string("B")).then(string("C"))...then(string("F")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,C, D, E, F, G, R> B>, matchC>, D>, E>, F>, G>, R> (Parsers.Function7<A, B, C, D, E, F, G, R> f) Match seven values, like the result of string("A").then(string("B")).then(string("C"))...then(string("G")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,C, D, E, F, G, H, R> B>, matchC>, D>, E>, F>, G>, H>, R> (Parsers.Function8<A, B, C, D, E, F, G, H, R> f) Match eight values, like the result of string("A").then(string("B")).then(string("C"))...then(string("H")) -
match
public static <A,B, Function<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<Parsers.Pair<A,C, D, E, F, G, H, I, R> B>, matchC>, D>, E>, F>, G>, H>, I>, R> (Parsers.Function9<A, B, C, D, E, F, G, H, I, R> f) Match nine values, like the result of string("A").then(string("B")).then(string("C"))...then(string("I"))
-