From 5028ad9a1faad0e363d017f18363e8062ba59871 Mon Sep 17 00:00:00 2001 From: bjculkin Date: Thu, 15 Feb 2018 15:25:09 -0500 Subject: Formatting and things --- JPratt/src/main/java/bjc/pratt/tokens/TokenStream.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'JPratt/src/main/java/bjc/pratt/tokens/TokenStream.java') diff --git a/JPratt/src/main/java/bjc/pratt/tokens/TokenStream.java b/JPratt/src/main/java/bjc/pratt/tokens/TokenStream.java index a5febcc..1c550de 100644 --- a/JPratt/src/main/java/bjc/pratt/tokens/TokenStream.java +++ b/JPratt/src/main/java/bjc/pratt/tokens/TokenStream.java @@ -14,10 +14,10 @@ import bjc.utils.parserutils.ParserException; * @author EVE * * @param - * The key type of the token. + * The key type of the token. * * @param - * The value type of the token. + * The value type of the token. */ public abstract class TokenStream implements Iterator> { /** @@ -33,7 +33,7 @@ public abstract class TokenStream implements Iterator> { * Create a new exception with the specified message. * * @param msg - * The message of the exception. + * The message of the exception. */ public ExpectationException(final String msg) { super(msg); @@ -58,15 +58,15 @@ public abstract class TokenStream implements Iterator> { * set of types, and then consuming it. * * @param expectedKeys - * The expected values + * The expected values * * @throws ExpectationException - * If the token is not one of the expected types. + * If the token is not one of the expected types. */ public void expect(final Set expectedKeys) throws ExpectationException { final K curKey = current().getKey(); - if (!expectedKeys.contains(curKey)) { + if(!expectedKeys.contains(curKey)) { final String expectedList = StringUtils.toEnglishList(expectedKeys.toArray(), false); throw new ExpectationException("One of '" + expectedList + "' was expected, not " + curKey); @@ -80,10 +80,10 @@ public abstract class TokenStream implements Iterator> { * set of types, and then consuming it. * * @param expectedKeys - * The expected values + * The expected values * * @throws ExpectationException - * If the token is not one of the expected types. + * If the token is not one of the expected types. */ @SafeVarargs public final void expect(final K... expectedKeys) throws ExpectationException { @@ -94,7 +94,7 @@ public abstract class TokenStream implements Iterator> { * Check whether the head token is a certain type. * * @param val - * The type to check for. + * The type to check for. * * @return Whether or not the head token is of that type. */ -- cgit v1.2.3