protected void |
FeatureStructureImplC._setTypeImpl(TypeImpl ti) |
|
private <T extends FeatureStructure> void |
FSIndexRepositoryImpl.addDirectSubtypes(TypeImpl type,
java.util.List<LowLevelIterator<T>> iteratorList) |
|
private void |
CASImpl.assertTypeBelongsToCasTypesystem(TypeImpl ti) |
|
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".
|
private static void |
FSClassRegistry.checkConformance(java.lang.Class<?> clazz,
TypeSystemImpl tsi,
TypeImpl ti,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> type2jcci) |
Inner check
Never called for "built-ins", or for uima types not having a JCas loaded class
Checks that a JCas class definition conforms to the current type in the current type system.
|
private static void |
FSClassRegistry.checkConformance(TypeSystemImpl ts,
TypeImpl ti,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> type2jcci) |
|
private void |
CASImpl.checkLowLevelParams(TOP fs,
TypeImpl domType,
int featCode) |
|
private void |
CASImpl.checkTypeHasFeature(TypeImpl domainType,
int featureCode) |
Check that the featCode is a feature of the domain type
|
private void |
CASImpl.checkTypeHasFeature(TypeImpl domainType,
FeatureImpl feature) |
|
(package private) boolean |
TypeSystemImpl.classifyAsRefType(java.lang.String name,
TypeImpl superType) |
The range type of features may include special uima types that are not creatable, such as the
primitive ones like integer, or string, or subtypes of string.
|
static int |
CasSerializerSupport.classifyType(TypeImpl ti) |
Classifies a type.
|
private int |
XCASSerializer.XCASDocSerializer.classifyType(TypeImpl ti) |
classify the type, without distinguishng list types
|
private <T extends TOP> void |
FSIndexRepositoryImpl.collectCowIndexParts(TypeImpl ti,
java.util.ArrayList<CopyOnWriteIndexPart<T>> indexes) |
|
private static boolean |
FSClassRegistry.compare_C_T(java.lang.Class<?> clazz,
TypeImpl ti) |
|
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) |
|
int |
TypeImpl.compareTo(TypeImpl t) |
compareTo must return 0 for "equal" types equal means same name, same flags, same supertype
chain, same subtypes, and same features Makes use of hashcodelong to probablistically shortcut
computation for equal case
for not equal types, do by parts
|
private void |
TypeSystemImpl.computeAdjustedFeatureOffsets(TypeImpl ti) |
This is the actual offset for the feature, in either the int or ref array
Offsets for super types come before types, because
multiple subtypes can share the same super type
Offsets due to JCas defined features are set before those from type systems, because
the same JCas class might be used with different type system,
and this increases the chance that the assignment is still valid.
|
private CasCompare.FeatLists |
CasCompare.computeFeatLists(TypeImpl ti) |
called during sort phase
|
private void |
TypeSystemImpl.computeFeatureOffsets(TypeImpl ti,
int next) |
Feature "ids" - offsets without adjusting for whether or not they're in the class itself
|
(package private) TypeImpl |
TypeImpl_array.consolidateType(TypeImpl topType,
TypeImpl fsArrayType) |
|
(package private) TypeImpl |
TypeImpl.consolidateType(TypeImpl topType,
TypeImpl fsArrayType) |
Consolidate arrays of fsRefs to fsArrayType and ordinary fsRefs to TOP for generic getters and
setters
|
TOP |
CASImpl.createArray(TypeImpl array_type,
int arrayLength) |
|
private ArrayFS |
CASImpl.createArrayFS(TypeImpl type,
int length) |
|
private void |
BinaryCasSerDes4.Deserializer.createCurrentFs(TypeImpl type,
CASImpl view) |
|
private void |
BinaryCasSerDes6.createCurrentFs(TypeImpl type,
CASImpl view) |
|
TOP |
FsGenerator3.createFS(TypeImpl typeImpl,
CASImpl casImpl) |
|
TOP |
FsGeneratorArray.createFS(TypeImpl typeImpl,
CASImpl casImpl,
int length) |
|
private <T extends FeatureStructureImplC> T |
CASImpl.createFSAnnotCheck(TypeImpl ti) |
|
private TOP |
CASImpl.createFsFromGenerator(FsGenerator3[] gs,
TypeImpl ti) |
|
private TOP |
CASImpl.createFsWithExistingId(TypeImpl ti,
int id) |
used for ll_setIntValue which changes type code
|
private static FSClassRegistry.JCasClassInfo |
FSClassRegistry.createJCasClassInfo(java.lang.Class<? extends TOP> jcasClass,
TypeImpl ti,
int jcasType,
java.lang.invoke.MethodHandles.Lookup lookup) |
Called after succeeding at loading, once per load for an exact matching JCas Class
- class was already checked to insure is of proper type for JCas
- skips creating-generator-for-Sofa - since "new Sofa(...)" is not a valid way to create a sofa
|
static FSClassRegistry.JCasClassInfo |
FSClassRegistry.createJCasClassInfo(TypeImpl ti,
java.lang.ClassLoader cl,
java.lang.invoke.MethodHandles.Lookup lookup) |
|
private CommonArrayFS |
XmiCasDeserializer.XmiCasDeserializerHandler.createNewArray(TypeImpl type,
java.util.List<java.lang.String> values) |
Create an array in the CAS.
|
private CommonArrayFS |
XmiCasDeserializer.XmiCasDeserializerHandler.createOrUpdateArray(TypeImpl arrayType,
java.util.List<java.lang.String> values,
int xmiId,
CommonArrayFS existingArray) |
Create or update an array in the CAS
If the array is an FSArray, and the elements are not yet deserialized, a lambda expression is
put on a "todo" list to be executed after all the FSs are deserialized, to set the value
later.
|
private CommonList |
XmiCasDeserializer.XmiCasDeserializerHandler.createOrUpdateList(TypeImpl listType,
java.util.List<java.lang.String> values,
int xmiId,
CommonList existingList) |
Called only for non-shared lists where all the list items serialized with the feature
|
boolean |
TypeSystemImpl.directlySubsumes(TypeImpl t1,
TypeImpl t2) |
|
(package private) void |
TypeSystemImpl.fixupFSArrayTypes(TypeImpl featRange,
TOP arrayFs) |
When deserializing Xmi and XCAS, Arrays of Feature Structures are encoded as FSArray types, but
they may have a more restrictive typing, e.g.
|
(package private) static int |
TypeSystemImpl.getAdjustedFeatureOffset(TypeImpl type,
java.lang.String featName) |
|
private static java.lang.String |
FSClassRegistry.getAllSuperTypeNames(TypeImpl ti) |
|
(package private) <T extends AnnotationFS> FsIndex_annotation<T> |
FSIndexRepositoryImpl.getAnnotationIndex(TypeImpl ti) |
returns the annotation index for a type which is Annotation or a subtype of it.
|
int |
TypeSystemImpl.getFeatureOffset(TypeImpl ti,
java.lang.String featureShortName) |
|
static int |
BinaryCasSerDes.getFsSpaceReq(TOP fs,
TypeImpl type) |
|
private static void |
FSClassRegistry.getGeneratorsForTypeAndSubtypes(TypeImpl ti,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> t2jcci,
boolean isPear,
java.lang.ClassLoader cl,
FsGenerator3[] r,
TypeSystemImpl tsi) |
|
static FSClassRegistry.JCasClassInfo |
FSClassRegistry.getOrCreateJCasClassInfo(TypeImpl ti,
java.lang.ClassLoader cl,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> type2jcci,
java.lang.invoke.MethodHandles.Lookup lookup) |
For a particular type name, get the JCasClassInfo
- by fetching the cached value
- by loading the class
- return null if no JCas class for this name
only called for non-Pear callers
|
private FSClassRegistry.JCasClassInfo |
TypeSystemImpl.getOrCreateJcci(TypeImpl ti) |
|
private int[] |
BinaryCasSerDes4.Deserializer.getPrevFsRef(TypeImpl type) |
lazy initialization of the prevFsRef info FSArray - only need slot 0 non-array - need all the
slots
|
FeatureImpl |
CasTypeSystemMapper.getSrcFeature(TypeImpl tgtType,
FeatureImpl tgtFeat) |
|
FeatureImpl[] |
CasTypeSystemMapper.getSrcFeatures(TypeImpl tgtType) |
Given a tgt type, return an array of source features in the order they would appear in the
target.
|
FeatureImpl |
CasTypeSystemMapper.getTgtFeature(TypeImpl srcType,
FeatureImpl srcFeat) |
Get target feature, given src type and feature
|
FeatureImpl |
CasTypeSystemMapper.getToFeature(FeatureImpl[][] mapByTypeCode,
TypeImpl fromType,
FeatureImpl fromFeat) |
|
static int |
TypeSystemImpl.getTypeClass(TypeImpl ti) |
|
private int |
XmiCasDeserializer.XmiCasDeserializerHandler.handleFeatureFromName(TypeImpl type,
TOP fs,
java.lang.String featName,
java.lang.String featVal,
boolean isNewFS) |
Deserialize one feature called from readFS 751 called from processDeferred, to handle
features specified as child elements
|
(package private) boolean |
TypeImpl.hasSupertype(TypeImpl supertype) |
|
private void |
FsIndex_iicp.initOneTypeThenAllSubtypes(TypeImpl ti,
java.util.ArrayList<FsIndex_singletype<FeatureStructure>> cache,
int indexKind) |
This method inits one type then calls itself for all direct subtypes
|
private int[] |
BinaryCasSerDes6.initPrevIntValue(TypeImpl ti) |
Get and lazily initialize if needed the feature cache values for a type For Serializing, the
type belongs to the srcTs For Deserializing, the type belongs to the tgtTs
|
private long[] |
BinaryCasSerDes6.initPrevLongValue(TypeImpl ti) |
Get and lazily initialize if needed the long values for a type For Serializing and
Deserializing, the type belongs to the tgtTs
|
(package private) boolean |
FSClassRegistry.JCasClassInfo.isCopydown(TypeImpl ti) |
|
private boolean |
FeatureStructureImplC.isOkArray(TypeImpl range,
java.lang.Object v) |
|
private static TypeSystemUtils.PathValid |
TypeSystemUtils.isPathValid(TypeImpl type,
java.util.Deque<java.lang.String> path,
TypeSystemUtils.PathValid status) |
Recursively called on each successive path element.
|
private static TypeSystemUtils.PathValid |
TypeSystemUtils.isPathValidInSubtypes(TypeImpl type,
java.lang.String fName,
java.util.Deque<java.lang.String> nextPath) |
Called when the Feature Name is not a valid feature of the current type .
|
boolean |
TypeSystemImpl.isRefType(TypeImpl type) |
|
private static void |
FSClassRegistry.loadBuiltins(TypeImpl ti,
java.lang.ClassLoader cl,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> type2jcci,
java.util.ArrayList<java.lang.invoke.MutableCallSite> callSites_toSync) |
|
TypeImpl |
CasTypeSystemMapper.mapTypeCode2Other(TypeImpl type,
boolean src2tgt) |
|
TypeImpl |
CasTypeSystemMapper.mapTypeSrc2Tgt(TypeImpl srcType) |
|
TypeImpl |
CasTypeSystemMapper.mapTypeTgt2Src(TypeImpl tgtType) |
|
private void |
TypeSystemImpl.maybeAddJCasOffsets(TypeImpl ti,
java.util.List<FeatureImpl> tempIntFis,
java.util.List<FeatureImpl> tempRefFis,
java.util.List<FeatureImpl> tempNsrFis) |
|
(package private) static FSClassRegistry.JCasClassInfo |
FSClassRegistry.maybeCreateJCasClassInfo(TypeImpl ti,
java.lang.ClassLoader cl,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> type2jcci,
java.lang.invoke.MethodHandles.Lookup lookup) |
|
private static void |
FSClassRegistry.maybeLoadJCasAndSubtypes(TypeSystemImpl tsi,
TypeImpl ti,
FSClassRegistry.JCasClassInfo copyDownDefault_jcasClassInfo,
java.lang.ClassLoader cl,
java.util.Map<java.lang.String,FSClassRegistry.JCasClassInfo> type2jcci,
java.util.ArrayList<java.lang.invoke.MutableCallSite> callSites_toSync,
java.lang.invoke.MethodHandles.Lookup lookup) |
Called for all the types, including the built-ins, but the built-ins have already been set up by the caller.
|
private static java.lang.Class<? extends TOP> |
FSClassRegistry.maybeLoadLocalJCas(TypeImpl ti,
java.lang.ClassLoader cl) |
Called to load (if possible) a corresponding JCas class for a UIMA type.
|
(package private) boolean |
CASImpl.maybeMakeBaseVersionForPear(FeatureStructureImplC fs,
TypeImpl ti) |
Called during construction of FS.
|
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 TOP |
BinaryCasSerDes4.Deserializer.readArray(int iHeap,
TypeImpl type) |
|
private void |
BinaryCasSerDes6.readArray(boolean storeIt,
TypeImpl srcType,
TypeImpl tgtType) |
|
private void |
XCASDeserializer.XCASDeserializerHandler.readArray(TypeImpl type,
org.xml.sax.Attributes attrs) |
|
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 |
BinaryCasSerDes6.readDiffIntSlot(boolean storeIt,
int featOffset,
SlotKinds.SlotKind kind,
TypeImpl tgtType) |
|
private void |
XCASDeserializer.XCASDeserializerHandler.readFS(TypeImpl type,
org.xml.sax.Attributes attrs,
boolean toIndex) |
|
private void |
BinaryCasSerDes4.Deserializer.ReadModifiedFSs.readModifiedAuxHeap(int numberOfMods,
TOP fs,
TypeImpl type) |
|
private void |
BinaryCasSerDes6.ReadModifiedFSs.readModifiedAuxHeap(int numberOfMods,
TOP fs,
TypeImpl srcType) |
|
private void |
BinaryCasSerDes4.Deserializer.ReadModifiedFSs.readModifiedMainHeap(int numberOfMods,
TOP fs,
TypeImpl type) |
|
private void |
BinaryCasSerDes6.ReadModifiedFSs.readModifiedMainHeap(int numberOfMods,
TOP fs,
TypeImpl srcType) |
This used for both int/float/string/fs arrays and int/float/string and other feature slots
Also used for Long/Double reading
|
(package private) void |
TypeSystemImpl.setJCasRegisteredType(int typeIndexID,
TypeImpl ti) |
|
private java.util.stream.Stream<FsIndex_singletype<TOP>> |
FSIndexRepositoryImpl.streamNonEmptyDirectSubtypes(TypeImpl ti) |
|
boolean |
TypeImpl_array.subsumes(TypeImpl subType) |
|
boolean |
TypeImpl_primitive.subsumes(TypeImpl ti) |
|
boolean |
TypeImpl_string.subsumes(TypeImpl ti) |
|
boolean |
TypeImpl.subsumes(TypeImpl ti) |
|
boolean |
TypeImpl.subsumesStrictly(TypeImpl ti) |
|
private static void |
FSClassRegistry.updateOrValidateAllCallSitesForJCasClass(java.lang.Class<? extends TOP> clazz,
TypeImpl type,
java.util.ArrayList<java.lang.invoke.MutableCallSite> callSites_toSync) |
Called once when the JCasClassInfo is created.
|
private void |
BinaryCasSerDes6.updatePrevArray0IntValue(TypeImpl ti,
int newValue) |
version called for arrays, captures the 0th value
|
private void |
BinaryCasSerDes6.updatePrevIntValue(TypeImpl ti,
int featOffset,
int newValue) |
Called for non-arrays
|
private void |
BinaryCasSerDes6.updatePrevLongValue(TypeImpl ti,
int featOffset,
long newValue) |
|
private static void |
FSClassRegistry.validateSuperClass(FSClassRegistry.JCasClassInfo jcci,
TypeImpl ti) |
Changed https://issues.apache.org/jira/browse/UIMA-5660 to allow insertions of extra types/
classes into the superchain.
|