public final class BooleanArray_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 |
---|
BooleanArray_Type(JCas jcas,
Type casType) |
Modifier and Type | Method and Description |
---|---|
void |
copyFromArray(int addr,
boolean[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
boolean[] dest,
int destOffset,
int length) |
boolean |
get(int addr,
int i) |
protected org.apache.uima.cas.impl.FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
boolean v) |
boolean[] |
toArray(int addr) |
size
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
public static final int typeIndexID
protected org.apache.uima.cas.impl.FSGenerator<?> getFSGenerator()
getFSGenerator
in class TOP_Type
public boolean get(int addr, int i)
addr
- low-level int reference to the boolean array to get the value fromi
- index (in bits, 0 origin)BooleanArrayFS.get(int)
public void set(int addr, int i, boolean v)
addr
- low-level int reference to the boolean array to set the value intoi
- index (in bits, 0 origin)v
- the value to setupdates the Cas, setting the indexed value to the value passed in.
public void copyFromArray(int addr, boolean[] src, int srcOffset, int destOffset, int length)
addr
- low-level int reference to the boolean array to set values intosrc
- a Java boolean array to copy fromsrcOffset
- the source offsetdestOffset
- the destination offsetlength
- the length (number of bits)BooleanArrayFS.copyFromArray(boolean[], int, int, int)
public void copyToArray(int addr, int srcOffset, boolean[] dest, int destOffset, int length)
addr
- low-level int reference to the boolean array to get values fromsrcOffset
- the source offsetdest
- the target to put boolean values intodestOffset
- the destination offsetlength
- the length, in bitsBooleanArrayFS.copyToArray(int, boolean[], int, int)
public boolean[] toArray(int addr)
addr
- low-level int reference to the boolean arrayBooleanArrayFS.toArray()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.