X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FParser.java;h=0daf30c3c08738afaf2db1fc254f9a8b2a79cd5b;hp=ca26a790a3aba92b1ce63a202163c30b76709c8a;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hpb=16b7ecd68873178d79b81023fc702d61d7696e13 diff --git a/src/main/java/net/pterodactylus/sone/text/Parser.java b/src/main/java/net/pterodactylus/sone/text/Parser.java index ca26a79..0daf30c 100644 --- a/src/main/java/net/pterodactylus/sone/text/Parser.java +++ b/src/main/java/net/pterodactylus/sone/text/Parser.java @@ -1,5 +1,5 @@ /* - * Sone - Parser.java - Copyright © 2010–2015 David Roden + * Sone - Parser.java - Copyright © 2010–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,6 @@ package net.pterodactylus.sone.text; -import java.io.IOException; import java.io.Reader; import javax.annotation.Nonnull; import javax.annotation.Nullable; @@ -28,20 +27,19 @@ import javax.annotation.Nullable; * * @param * The type of the parser context - * @author David ‘Bombe’ Roden */ public interface Parser { /** * Create one or more {@link Part}s from the given text source. * - * @param context - * The parser context (may be {@code null}) * @param source * The text source + * @param context + * The parser context (may be {@code null}) * @return The parsed parts */ @Nonnull - Iterable parse(@Nullable C context, @Nonnull String source); + Iterable parse(@Nonnull String source, @Nullable C context); }