// Path: raidenjpa-core/src/main/java/org/raidenjpa/util/StringUtil.java
// public class StringUtil {
// 
// 	public static boolean equalsIgnoreCase(String value, String ... array) {
// 		for (String valueInArray: array) {
// 			if (valueInArray.equalsIgnoreCase(value)) {
// 				return true;
// 			}
// 		}
// 		
// 		return false;
// 	}
// }


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.raidenjpa.util.BadSmell;
import org.raidenjpa.util.StringUtil;
	@BadSmell("This should not receive the index")
	public String get(int index) {
		return words[index];
	}
	
	public String current() {
		return words[position];
	}

	public String next() {
		return words[position++]; 
	}

	public String getJpql() {
		return originalJpql;
	}

	public int length() {
		return words.length;
	}
	
	public boolean hasMoreWord() {
		return length() > position;
	}

	boolean existAlias() {
		if (!hasMoreWord()) {
			return false;
		}
		
// Path: raidenjpa-core/src/main/java/org/raidenjpa/util/StringUtil.java
// public class StringUtil {
// 
// 	public static boolean equalsIgnoreCase(String value, String ... array) {
// 		for (String valueInArray: array) {
// 			if (valueInArray.equalsIgnoreCase(value)) {
// 				return true;
// 			}
// 		}
// 		
// 		return false;
// 	}
// }


// Path: raidenjpa-core/src/main/java/org/raidenjpa/query/parser/QueryWords.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.raidenjpa.util.BadSmell;
import org.raidenjpa.util.StringUtil;

	@BadSmell("This should not receive the index")
	public String get(int index) {
		return words[index];
	}
	
	public String current() {
		return words[position];
	}

	public String next() {
		return words[position++]; 
	}

	public String getJpql() {
		return originalJpql;
	}

	public int length() {
		return words.length;
	}
	
	public boolean hasMoreWord() {
		return length() > position;
	}

	boolean existAlias() {
		if (!hasMoreWord()) {
			return false;
		}
		
		return !StringUtil.equalsIgnoreCase(current(), POSSIBLE_WORDS_AFTER_FROM);