/** * @see org.apache.uima.cas.ArrayFS#size() * @return - */ public int size() { return casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** * @param addr the low level reference to the array in the CAS * @return the size of the array */ public int size(int addr) { return casImpl.ll_getArraySize(addr); }
/** * return the size of the array * * @return size of array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** * @see org.apache.uima.cas.ArrayFS#size() */ public int size() { return this.casImpl.ll_getArraySize(this.addr); }
/** * @see org.apache.uima.cas.ArrayFS#size() */ public int size() { return casImpl.ll_getArraySize(addr); }
/** return the size of the array. */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
/** return the size of the array */ public int size() { return jcasType.casImpl.ll_getArraySize(addr); }
public int size() { return this.casImpl.ll_getArraySize(this.addr); }
public final void checkArrayBounds(int fsRef, int pos) { final int arrayLength = ll_getArraySize(fsRef); if ((pos < 0) || (pos >= arrayLength)) { throw new ArrayIndexOutOfBoundsException(pos); // LowLevelException e = new LowLevelException( // LowLevelException.ARRAY_INDEX_OUT_OF_RANGE); // e.addArgument(Integer.toString(pos)); // throw e; } }
public final void checkArrayBounds(int fsRef, int pos, int length) { final int arrayLength = ll_getArraySize(fsRef); if ((pos < 0) || (length < 0) || ((pos + length) > arrayLength)) { LowLevelException e = new LowLevelException(LowLevelException.ARRAY_INDEX_LENGTH_OUT_OF_RANGE); e.addArgument(Integer.toString(pos)); e.addArgument(Integer.toString(length)); throw e; } }
/** * @see org.apache.uima.cas.ArrayFS#size() */ public int size() { return this.getCASImpl().ll_getArraySize(this.getAddress()); }
public final void checkArrayBounds(int fsRef, int pos) { if (NULL == fsRef) { LowLevelException e = new LowLevelException(LowLevelException.NULL_ARRAY_ACCESS); // note - need to add this to ll_runtimeException e.addArgument(Integer.toString(pos)); throw e; } final int arrayLength = casImpl.ll_getArraySize(fsRef); if (pos < 0 || pos >= arrayLength) { LowLevelException e = new LowLevelException(LowLevelException.ARRAY_INDEX_OUT_OF_RANGE); e.addArgument(Integer.toString(pos)); throw e; } }
private void enqueueFSArray(int addr) { final int size = cas.ll_getArraySize(addr); int pos = cas.getArrayStartAddress(addr); int val; for (int i = 0; i < size; i++) { val = cas.getHeapValue(pos); if (val != CASImpl.NULL) { enqueue(val); } ++pos; } }
private void addArrayElement(String content) throws SAXParseException { if (arrayPos >= cas.ll_getArraySize(currentAddr)) { throw createException(XCASParsingException.EXCESS_ARRAY_ELE); } try { if (!emptyVal(content)) { if (cas.isArrayType(cas.getHeap().heap[currentAddr])) { cas.setArrayValueFromString(currentAddr, arrayPos, content); } else { System.out.println(" not a known array type "); } } } catch (NumberFormatException e) { throw createException(XCASParsingException.INTEGER_EXPECTED, content); } ++arrayPos; }