public final class ShortArray_Type extends CommonArray_Type
| Modifier and Type | Field and Description |
|---|---|
static int |
typeIndexID
this types ID - used to index a localTypeArray in JCas to get an index which indexes the global
typeArray in JCas instance to get a ref to this instance
|
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance| Constructor and Description |
|---|
ShortArray_Type(JCas jcas,
Type casType) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFromArray(int addr,
short[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
short[] dest,
int destOffset,
int length) |
short |
get(int addr,
int i) |
protected org.apache.uima.cas.impl.FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
short v)
updates the Cas, setting the indexed value to the passed in Java String value.
|
short[] |
toArray(int addr) |
sizeaddToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexespublic static final int typeIndexID
protected org.apache.uima.cas.impl.FSGenerator<?> getFSGenerator()
getFSGenerator in class TOP_Typepublic short get(int addr,
int i)
addr - the low level CAS Feature Structure referencei - the indexShortArrayFS.get(int)public void set(int addr,
int i,
short v)
addr - the low level CAS Feature Structure referencei - the indexv - the valueShortArrayFS.set(int, short)public void copyFromArray(int addr,
short[] src,
int srcOffset,
int destOffset,
int length)
addr - the low level CAS Feature Structure referencesrc - the Java object used as the sourcesrcOffset - the source offsetdestOffset - the destination (in the CAS FS) offsetlength - the number of items to copyShortArrayFS.copyFromArray(short[], int, int, int)public void copyToArray(int addr,
int srcOffset,
short[] dest,
int destOffset,
int length)
addr - the low level CAS Feature Structure referencesrcOffset - the source offsetdest - the Java object to copy intodestOffset - the destination offsetlength - the number of items to copyShortArrayFS.copyToArray(int, short[], int, int)public short[] toArray(int addr)
addr - the low level CAS Feature Structure referenceShortArrayFS.toArray()Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.