T - the parsed typepublic interface Parser<T> extends java.util.function.Function<Node,T>
Node into T.| Modifier and Type | Method and Description |
|---|---|
default T |
apply(@NonNull Node node)
Deprecated.
only exists to implement
Function |
default T |
parse(@NonNull Node node)
Parses a
Node into T. |
default @NonNull java.util.stream.Stream<T> |
parse(@NonNull NodeStream stream)
Parses a stream of
Node into a stream of T. |
default @NonNull java.util.Optional<T> |
parse(@NonNull java.util.Optional<Node> node)
Parses a
Node into T. |
default @NonNull java.util.stream.Stream<T> |
parse(@NonNull java.util.stream.Stream<Node> stream)
Parses a stream of
Node into a stream of T. |
T |
throwingParse(@NonNull Node node)
Parses a
Node into T. |
default @NonNull java.util.Optional<T> parse(@NonNull java.util.Optional<Node> node)
Node into T.node - the nodedefault T parse(@NonNull Node node)
Node into T.node - the nodeT throwingParse(@NonNull Node node) throws XMLException
Node into T.node - the nodeXMLException - if an exception occurred while parsingdefault @NonNull java.util.stream.Stream<T> parse(@NonNull NodeStream stream)
Node into a stream of T.stream - the node stream