public class FSArray_Type extends CommonArray_Type
Modifier and Type | Field and Description |
---|---|
static int |
typeIndexID |
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance
Constructor and Description |
---|
FSArray_Type(JCas jcas,
Type casType) |
Modifier and Type | Method and Description |
---|---|
void |
copyFromArray(int addr,
FeatureStructure[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
FeatureStructure[] dest,
int destOffset,
int length) |
FeatureStructure |
get(int addr,
int i) |
protected org.apache.uima.cas.impl.FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
FeatureStructure v)
updates the Cas, setting the indexed value to the passed in FeatureStructure value.
|
FeatureStructure[] |
toArray(int addr) |
size
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
protected org.apache.uima.cas.impl.FSGenerator<?> getFSGenerator()
getFSGenerator
in class TOP_Type
public FeatureStructure get(int addr, int i)
addr
- the low level CAS Feature Structure referencei
- the indexArrayFS.get(int)
public void set(int addr, int i, FeatureStructure v)
addr
- the low level CAS Feature Structure referencei
- the indexv
- the valueArrayFS.set(int, FeatureStructure)
public void copyFromArray(int addr, FeatureStructure[] src, int srcOffset, int destOffset, int length) throws ArrayIndexOutOfBoundsException
addr
- the low level CAS Feature Structure referencesrc
- the Java array object to copy fromsrcOffset
- the source offsetdestOffset
- the destination offsetlength
- the number of items to copyArrayIndexOutOfBoundsException
- if index out of boundsArrayFS.copyFromArray(FeatureStructure[], int, int, int)
public void copyToArray(int addr, int srcOffset, FeatureStructure[] dest, int destOffset, int length) throws ArrayIndexOutOfBoundsException
addr
- the low level CAS Feature Structure referencesrcOffset
- the CAS source offsetdest
- the Java object to copy intodestOffset
- the destination offsetlength
- the number of items to copyArrayIndexOutOfBoundsException
- if index out of boundsArrayFS.copyToArray(int, FeatureStructure[], int, int)
public FeatureStructure[] toArray(int addr)
addr
- the low level CAS Feature Structure referenceArrayFS.toArray()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.