From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- .../bjc/utils/parserutils/TreeConstructor.java | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'base/src/main/java/bjc/utils/parserutils/TreeConstructor.java') diff --git a/base/src/main/java/bjc/utils/parserutils/TreeConstructor.java b/base/src/main/java/bjc/utils/parserutils/TreeConstructor.java index 90141ef..7bff43e 100644 --- a/base/src/main/java/bjc/utils/parserutils/TreeConstructor.java +++ b/base/src/main/java/bjc/utils/parserutils/TreeConstructor.java @@ -23,7 +23,7 @@ public class TreeConstructor { * Alias interface for special operator types. * * @param - * The token type of the tree. + * The token type of the tree. */ public interface QueueFlattener extends Function>, ITree> { @@ -48,12 +48,11 @@ public class TreeConstructor { * Only binary operators are accepted. * * @param - * The elements of the parse tree + * The elements of the parse tree * @param tokens - * The list of tokens to build a tree from + * The list of tokens to build a tree from * @param isOperator - * The predicate to use to determine if something is a - * operator + * The predicate to use to determine if something is a operator * @return A AST from the expression */ public static ITree constructTree(final IList tokens, @@ -71,21 +70,20 @@ public class TreeConstructor { * parameters to handle non-binary operators. * * @param - * The elements of the parse tree. + * The elements of the parse tree. * * @param tokens - * The list of tokens to build a tree from. + * The list of tokens to build a tree from. * * @param isOperator - * The predicate to use to determine if something is a - * operator. + * The predicate to use to determine if something is a operator. * * @param isSpecialOperator - * The predicate to use to determine if an operator needs - * special handling. + * The predicate to use to determine if an operator needs special + * handling. * * @param handleSpecialOperator - * The function to use to handle special case operators. + * The function to use to handle special case operators. * * @return A AST from the expression * @@ -96,11 +94,11 @@ public class TreeConstructor { /* * Make sure our parameters are valid */ - if (tokens == null) + if(tokens == null) throw new NullPointerException("Tokens must not be null"); - else if (isOperator == null) + else if(isOperator == null) throw new NullPointerException("Operator predicate must not be null"); - else if (isSpecialOperator == null) + else if(isSpecialOperator == null) throw new NullPointerException("Special operator determiner must not be null"); /* -- cgit v1.2.3