/** Returns whether the item is a specific word item */ private boolean isTheWord(String word, Item item) { if (!(item instanceof WordItem)) { return false; } return word.equalsIgnoreCase(((WordItem) item).getRawWord()); // TODO: Why not search for getWord w.o lowercasing? }
image = item.getRawWord(); offset = 0; length = image.length();
if (and!=null && (current instanceof WordItem) && "OR".equals(((WordItem)current).getRawWord())) { if (or==null) or=addOr(and,or);