public class IntegerArray_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 |
|---|
IntegerArray_Type(JCas jcas,
Type casType) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFromArray(int addr,
int[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
int[] dest,
int destOffset,
int length) |
int |
get(int addr,
int i) |
protected FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
int v)
updates the Cas from the passed in Java value.
|
int[] |
toArray(int addr) |
sizeaddToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexespublic static final int typeIndexID
protected FSGenerator<?> getFSGenerator()
getFSGenerator in class TOP_Typepublic int get(int addr,
int i)
addr - low level CAS Feature Structure referencei - the indexIntArrayFS.get(int)public void set(int addr,
int i,
int v)
addr - low level CAS Feature Structure referencei - the indexv - the valueIntArrayFS.set(int, int)public void copyFromArray(int addr,
int[] src,
int srcOffset,
int destOffset,
int length)
addr - low level CAS Feature Structure referencesrc - the source (Java object) to copy fromsrcOffset - the source offsetdestOffset - the destination (the CAS Feature Structure) offsetlength - number of items to copyIntArrayFS.copyFromArray(int[], int, int, int)public void copyToArray(int addr,
int srcOffset,
int[] dest,
int destOffset,
int length)
addr - low level CAS Feature Structure referencesrcOffset - The CAS source offsetdest - the Java object to copy intodestOffset - the destination offsetlength - number of items to copyIntArrayFS.copyToArray(int, int[], int, int)public int[] toArray(int addr)
addr - low level CAS Feature Structure referenceIntArrayFS.toArray()Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.