super(jcas);
}
public int getNthElement(int i) {
if (this instanceof EmptyIntegerList) {
CASRuntimeException casEx = new CASRuntimeException(
CASRuntimeException.JCAS_GET_NTH_ON_EMPTY_LIST, new String[] { "EmptyIntegerList" });
throw casEx;
}
if (i < 0) {
CASRuntimeException casEx = new CASRuntimeException(
CASRuntimeException.JCAS_GET_NTH_NEGATIVE_INDEX, new String[] { Integer.toString(i) });
throw casEx;
}
int originali = i;
IntegerList cg = this;
for (;; i--) {
if (cg instanceof EmptyIntegerList) {
CASRuntimeException casEx = new CASRuntimeException(
CASRuntimeException.JCAS_GET_NTH_PAST_END, new String[] { Integer.toString(originali) });
throw casEx;
}
NonEmptyIntegerList c = (NonEmptyIntegerList) cg;
if (i == 0)