boolean |
FeatureStructureImplC._getBooleanValueNc(FeatureImpl fi) |
|
byte |
FeatureStructureImplC._getByteValueNc(FeatureImpl feat) |
|
double |
FeatureStructureImplC._getDoubleValueNc(FeatureImpl fi) |
|
TOP |
FeatureStructureImplC._getFeatureValueNc(FeatureImpl feat) |
|
float |
FeatureStructureImplC._getFloatValueNc(FeatureImpl fi) |
|
int |
FeatureStructureImplC._getIntLikeValue(SlotKinds.SlotKind slotKind,
FeatureImpl f) |
for compressed form 4 - for getting the prev value of int-like slots Uses unchecked forms for
feature access
|
private int |
FeatureStructureImplC._getIntValueCommon(FeatureImpl feat) |
|
int |
FeatureStructureImplC._getIntValueNc(FeatureImpl feat) |
|
long |
FeatureStructureImplC._getLongValueNc(FeatureImpl feat) |
|
private java.lang.Object |
FeatureStructureImplC._getRefValueCommon(FeatureImpl feat) |
|
short |
FeatureStructureImplC._getShortValueNc(FeatureImpl feat) |
|
java.lang.String |
FeatureStructureImplC._getStringValueNc(FeatureImpl feat) |
|
void |
FeatureStructureImplC._setBooleanValueNcNj(FeatureImpl fi,
boolean v) |
|
void |
FeatureStructureImplC._setByteValueNcNj(FeatureImpl fi,
byte v) |
|
void |
FeatureStructureImplC._setDoubleValueNcNj(FeatureImpl fi,
double v) |
|
void |
FeatureStructureImplC._setFeatureValueNcNj(FeatureImpl fi,
java.lang.Object v) |
|
void |
FeatureStructureImplC._setFloatValueNcNj(FeatureImpl fi,
float v) |
|
void |
FeatureStructureImplC._setIntLikeValue(SlotKinds.SlotKind slotKind,
FeatureImpl fi,
int v) |
Internal Use only
|
void |
FeatureStructureImplC._setIntLikeValueNcNj(SlotKinds.SlotKind slotKind,
FeatureImpl fi,
int v) |
Internal Use only - no feature check, no journaling
|
protected void |
FeatureStructureImplC._setIntValueCJ(FeatureImpl fi,
int v) |
All 3 checks
|
private void |
FeatureStructureImplC._setIntValueCommon(FeatureImpl fi,
int v) |
|
void |
FeatureStructureImplC._setIntValueNcNj(FeatureImpl fi,
int v) |
|
protected void |
FeatureStructureImplC._setLongValueCJ(FeatureImpl fi,
long v) |
All 3 checks for long
|
void |
FeatureStructureImplC._setLongValueNcNj(FeatureImpl fi,
long v) |
|
protected void |
FeatureStructureImplC._setLongValueNfcCJ(FeatureImpl fi,
long v) |
2 checks, no feature check
|
protected void |
FeatureStructureImplC._setRefValueCJ(FeatureImpl fi,
java.lang.Object v) |
|
private void |
FeatureStructureImplC._setRefValueCommon(FeatureImpl fi,
java.lang.Object v) |
|
protected void |
FeatureStructureImplC._setRefValueCommonWj(FeatureImpl fi,
java.lang.Object v) |
|
protected void |
FeatureStructureImplC._setRefValueNfcCJ(FeatureImpl fi,
java.lang.Object v) |
2 checks, no feature check
|
void |
FeatureStructureImplC._setShortValueNcNj(FeatureImpl fi,
short v) |
|
void |
FeatureStructureImplC._setStringValueNcNj(FeatureImpl fi,
java.lang.String v) |
|
(package private) void |
TypeImpl.addFeature(FeatureImpl fi) |
|
private boolean |
CasTypeSystemMapper.addFeatures(FeatureImpl[][] map,
TypeSystemImpl tsFrom,
TypeSystemImpl tsTo) |
Create the map from tsFrom to tsTo for all the features, by type
-- map created using type and feature name equality
-- note: the features may have different definitions; map is by name only
--- e.g., one may have String range, the other float range.
|
java.lang.StringBuilder |
FeatureStructureImplC.addStringOrPrimitive(java.lang.StringBuilder sb,
FeatureImpl fi) |
|
private void |
TypeImpl.checkAndAdjustFeatureInSubtypes(TypeImpl ti,
FeatureImpl fi) |
It is possible that users may create type/subtype structure, and then add features (in any order) to that,
including adding a subtype feature "foo", and subsequently adding a type feature "foo".
|
(package private) void |
TypeImpl.checkExistingFeatureCompatible(FeatureImpl existingFi,
Type range) |
|
private void |
CASImpl.checkFsRan(FeatureImpl fi) |
Validate a feature's range is a ref to a feature structure
|
private void |
CASImpl.checkTypeHasFeature(TypeImpl domainType,
FeatureImpl feature) |
|
private int |
CasCompare.compareAllArrayElements(TOP fs1,
TOP fs2,
int len,
java.util.function.IntUnaryOperator c,
TypeImpl callerTi,
FeatureImpl callerFi) |
|
private int |
CasCompare.compareFeature(TOP fs1,
TOP fs2,
TypeImpl ti1,
FeatureImpl fi1) |
|
private int |
CasCompare.compareFss(TOP fs1,
TOP fs2,
TypeImpl callerTi,
FeatureImpl callerFi) |
To work with Java sort, must implement the comparator contract:
- compare(x, y) must be opposite compare(y, x)
- compare(x, y) < 0 && compare(y, z) < 0 implies compare(x, z) < 0
- compare(x, y) == 0 implies compare(x, z) same as compare(y, z) for any z
Inner part of compareRefs; that other method adds:
null-check
type-mapping skips
loop determination
If not in a sort context, a miscompare generates messaging information.
|
private int |
CasCompare.compareFssArray(TOP fs1,
TOP fs2,
TypeImpl callerTi,
FeatureImpl callerFi) |
|
private int |
CasCompare.compareRefs(TOP rfs1,
TOP rfs2,
TypeImpl callerTi,
FeatureImpl callerFi) |
Two uses cases supported:
- comparing for sorting (within on type system)
-- goal is to be able to compare two CASes
--- ordering must guarantee that the equal FSs appear in the
--- same order
- comparing two FSs (maybe from different CASes)
-- supporting missing types and features
-- happens when the two type systems are different
-- the missing types and features are ignored in the comparison
Different reference chains
This compare routine may be called recursively
- use case: FS(a) has slot which is ref to
FS(b) which has slot which is ref to
FS(c)
-- the type of a, b, c may all be different.
|
private int |
CasCompare.compareSlot(TOP fs1,
TOP fs2,
FeatureImpl fi1,
FeatureImpl fi2,
TypeImpl ti1) |
|
private int |
CasCompare.compareStringsWithNull(java.lang.String s1,
java.lang.String s2,
TypeImpl t,
FeatureImpl f,
int index) |
|
static boolean |
CASImpl.copyFeatureExceptFsRef(TOP fsSrc,
FeatureImpl fiSrc,
TOP fsTgt,
FeatureImpl fiTgt) |
Copies a feature from one fs to another FSs may be in different type systems Doesn't copy a
feature ref, but instead returns false.
|
private void |
XmiCasDeserializer.XmiCasDeserializerHandler.deserializeFsRef(java.lang.String featVal,
FeatureImpl fi,
TOP fs) |
|
private void |
CASImpl.featModWhileInIndexReport(FeatureStructure fs,
FeatureImpl fi) |
|
private void |
XCASDeserializer.XCASDeserializerHandler.finalizeRefValue(int extId,
TOP fs,
FeatureImpl fi) |
Common code run at finalize time, to set ref values and handle out-of-typesystem data
|
private void |
XmiCasDeserializer.XmiCasDeserializerHandler.finalizeRefValue(int xmiId,
TOP fs,
FeatureImpl fi) |
|
private int |
BinaryCasSerDes4.Deserializer.getPrevIntValue(SlotKinds.SlotKind kind,
FeatureImpl feat) |
Common code for feature offset and array
|
FeatureImpl |
CasTypeSystemMapper.getSrcFeature(TypeImpl tgtType,
FeatureImpl tgtFeat) |
|
FeatureImpl |
CasTypeSystemMapper.getTgtFeature(TypeImpl srcType,
FeatureImpl srcFeat) |
Get target feature, given src type and feature
|
FeatureImpl |
CasTypeSystemMapper.getToFeature(FeatureImpl[][] mapByTypeCode,
TypeImpl fromType,
FeatureImpl fromFeat) |
|
private java.lang.String |
CASImpl.getTraceRepOfObj(FeatureImpl fi,
java.lang.Object v) |
|
private void |
XmiCasDeserializer.XmiCasDeserializerHandler.handleFeatMultiValue(TOP fs,
FeatureImpl fi,
java.util.List<java.lang.String> featVals) |
|
private void |
XmiCasDeserializer.XmiCasDeserializerHandler.handleFeatSingleValue(TOP fs,
FeatureImpl fi,
java.lang.String featVal) |
|
private int |
BinaryCasSerDes.heapFeat(int nextFsAddr,
FeatureImpl feat) |
|
private boolean |
CasSerializerSupport.CasDocSerializer.isMultiRef_enqueue(FeatureImpl fi,
TOP featVal,
boolean alreadyVisited,
boolean isListNode,
boolean isListFeat) |
ordinary FSs referenced as features are not checked by this routine;
this is only called for FSlists of various kinds, and fs arrays of various kinds
Not all featValues should be enqueued;
list or array features which are marked **NOT** multiple-refs-allowed
are serialized in-line
for JSON, when using dynamicMultiRef (the default), list / array FSs
are serialized by ref (not in-line) if there are multiple refs to them
for XMI and JSON, any FS ref marked as multiple-refs-allowed forces
the item onto the ref "queue".
|
boolean |
CasSerializerSupport.CasDocSerializer.isStaticMultiRef(FeatureImpl fi) |
|
private void |
CASImpl.logFSUpdate(TOP fs,
FeatureImpl fi) |
|
private void |
CASImpl.logFSUpdate(TOP fs,
FeatureImpl fi,
int arrayIndexStart,
int nbrOfConsecutive) |
|
void |
CASImpl.maybeLogArrayUpdate(FeatureStructureImplC fs,
FeatureImpl feat,
int i) |
|
void |
CASImpl.maybeLogUpdate(FeatureStructureImplC fs,
FeatureImpl feat) |
|
private void |
CasCompare.mismatchFs(TOP fs1,
TOP fs2,
java.lang.String msg,
TypeImpl callerTi,
FeatureImpl callerFi) |
|
private void |
CasCompare.mismatchFs(TOP fs1,
TOP fs2,
TypeImpl callerTi,
FeatureImpl callerFi) |
|
private void |
BinaryCasSerDes4.Deserializer.readByKind(FeatureImpl feat,
TypeImpl type) |
If the fs is null, accumulate fixup operations, otherwise directly set this
|
private void |
BinaryCasSerDes6.readByKind(TOP fs,
FeatureImpl tgtFeat,
FeatureImpl srcFeat,
boolean storeIt,
TypeImpl tgtType) |
|
private int |
BinaryCasSerDes4.Deserializer.readDiffWithPrevTypeSlot(SlotKinds.SlotKind kind,
FeatureImpl feat) |
Difference with previously deserialized value of corresponding slot of
previous FS for this type.
|
private void |
CasSerializerSupport.CasDocSerializer.reportMultiRefWarning(FeatureImpl fi) |
|
private void |
BinaryCasSerDes4.Serializer.serializeByKind(TOP fs,
FeatureImpl feat) |
|
private void |
BinaryCasSerDes6.serializeByKind(TOP fs,
FeatureImpl feat) |
serialize one feature structure, which is
guaranteed not to be null
guaranteed to exist in target if there is type mapping
Caller iterates over target slots, but the feat arg is for the corresponding src feature
|
private void |
BinaryCasSerDes6.serializeDiffWithPrevTypeSlot(SlotKinds.SlotKind kind,
TOP fs,
FeatureImpl feat,
int newValue) |
|
private void |
BinaryCasSerDes.setFeatOrDefer(int heapIndex,
FeatureImpl feat,
java.util.List<java.lang.Runnable> fixups4forwardFsRefs,
java.util.function.Consumer<TOP> setter,
Int2ObjHashMap<TOP,TOP> addr2fs) |
|
(package private) void |
TypeSystemImpl.setFeatureAdjustedOffset(FeatureImpl fi,
java.util.List<FeatureImpl> tempIntFis,
java.util.List<FeatureImpl> tempRefFis,
java.util.List<FeatureImpl> tempNsr) |
|
static void |
CASImpl.setFeatureValueFromString(FeatureStructureImplC fs,
FeatureImpl feat,
java.lang.String s) |
Supports setting slots to "0" for null values
|
static void |
CASImpl.setFeatureValueFromStringNoDocAnnotUpdate(FeatureStructureImplC fs,
FeatureImpl feat,
java.lang.String s) |
Internal use, for cases where deserializing - special case setting sofString to skip updating
the document annotation
|
static void |
CASImpl.setFeatureValueMaybeSofa(TOP fs,
FeatureImpl feat,
TOP value) |
internal use - special setter for setting feature values, including special handling if the
feature is for the sofaArray, when deserializing
|
void |
CASImpl.setLongValue(FeatureStructureImplC fsIn,
FeatureImpl feat,
long v) |
version for longs, uses two slots Only called from FeatureStructureImplC after determining
there is no local field to use Is here because of 3 calls to things in this class
|
(package private) void |
TypeSystemImpl.setOffset2Feat(java.util.List<FeatureImpl> tempIntFis,
java.util.List<FeatureImpl> tempRefFis,
java.util.List<FeatureImpl> tempNsr,
FeatureImpl fi,
int next) |
|
(package private) void |
TypeImpl.setStaticMergedIntFeaturesList(FeatureImpl[] v) |
|
(package private) void |
TypeImpl.setStaticMergedNonSofaFsRefs(FeatureImpl[] v) |
|
(package private) void |
TypeImpl.setStaticMergedRefFeaturesList(FeatureImpl[] v) |
|
(package private) void |
CASImpl.setWithCheckAndJournal(TOP fs,
FeatureImpl fi,
java.lang.Runnable setter) |
|
void |
CASImpl.setWithJournal(FeatureStructureImplC fs,
FeatureImpl fi,
java.lang.Runnable setter) |
This method called by setters in JCas gen'd classes when the setter must check for journaling
|
(package private) void |
CASImpl.traceFSfeat(FeatureStructureImplC fs,
FeatureImpl fi,
java.lang.Object v) |
|
private boolean |
BinaryCasSerDes.updateStringFeature(TOP fs,
FeatureImpl feat,
java.lang.String s,
java.util.List<java.lang.Runnable> fixups4forwardFsRefs) |
|