/** * Checks if the previous token is of a certain type. * * @param delTo the cursor for calling prevItem on * @param match the type we want to check * @return true if the previous token is of type match */ private boolean _checkPrevEquals(Iterator delTo, String match) { if (delTo.atFirstItem() || delTo.atStart()) return false; return delTo.prevItem().getType().equals(match); }