|
Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfj.parser.Parser.StreamParser
public static final class Parser.StreamParser
Parsers that accept Stream input.
| Method Summary | ||
|---|---|---|
static
|
element(E e)
Returns a parser that produces an element from the stream if it is available and fails otherwise. |
|
static
|
element(P1<E> e)
Returns a parser that produces an element from the stream if it is available and fails otherwise. |
|
static
|
satisfy(E missing,
F<I,E> sat,
F<I,Boolean> f)
Returns a parser that produces an element from the stream that satisfies the given predicate, or fails. |
|
static
|
satisfy(P1<E> missing,
F<I,E> sat,
F<I,Boolean> f)
Returns a parser that produces an element from the stream that satisfies the given predicate, or fails. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <I,E> Parser<Stream<I>,I,E> element(P1<E> e)
e - The error to fail with if no element is available.
public static <I,E> Parser<Stream<I>,I,E> element(E e)
e - The error to fail with if no element is available.
public static <I,E> Parser<Stream<I>,I,E> satisfy(P1<E> missing,
F<I,E> sat,
F<I,Boolean> f)
missing - The error if no element is available.sat - The error if the element does not satisfy the predicate.f - The predicate that the element should satisfy.
public static <I,E> Parser<Stream<I>,I,E> satisfy(E missing,
F<I,E> sat,
F<I,Boolean> f)
missing - The error if no element is available.sat - The error if the element does not satisfy the predicate.f - The predicate that the element should satisfy.
|
Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||