public int getFieldIndex(String fieldName, Type fieldType) {
		for (int i = 0; i < fields.length; i++) {
			if (fields[i].getName().equals(fieldName)
					&& fields[i].getType().equals(fieldType))
				return i;
		}
		return -1;
	}