Package org.apache.uima.cas.impl
Class FSClassRegistry.JCasClassInfo
- java.lang.Object
-
- org.apache.uima.cas.impl.FSClassRegistry.JCasClassInfo
-
- Enclosing class:
- FSClassRegistry
public static class FSClassRegistry.JCasClassInfo extends java.lang.Object
One instance per JCas class defined for it, per class loader - per class loader, because different JCas class definitions for the same name are possible, per class loader Kept in maps, per class loader. Created when potentially loading JCas classes. Entries kept in potentially multiple global static hashmaps, with key = the string form of the typename - string form of key allows sharing the same named JCas definition among different type system type-impls. - one hashmap per classloader Entries reused potentially by multiple type systems. Info used for - identifying the target of a "new" operator - could be generator for superclass. - remembering the results of getting all the features this JCas class defines One entry per defined JCas class per classloader; no instance if no JCas class is defined.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) FSClassRegistry.JCasClassFeatureInfo[]
features
(package private) FsGenerator3
generator
(package private) java.lang.Class<? extends TOP>
jcasClass
The corresponding loaded JCas Class for this UIMA type, may be a JCas class associated with a UIMA supertype if no JCas class is found for this type.(package private) int
jcasType
NOT the TypeCode, but instead, the unique int assigned to the JCas class when it gets loaded Might be -1 if the JCasClassInfo instance is for a non-JCas instantiable type
-
Constructor Summary
Constructors Constructor Description JCasClassInfo(java.lang.Class<? extends TOP> jcasClass, FsGenerator3 generator, int jcasType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TypeImpl
getUimaType(TypeSystemImpl tsi)
(package private) boolean
isCopydown(java.lang.String jcasClassName)
(package private) boolean
isCopydown(TypeImpl ti)
(package private) boolean
isPearOverride(TypeSystemImpl tsi)
-
-
-
Field Detail
-
generator
final FsGenerator3 generator
-
jcasClass
final java.lang.Class<? extends TOP> jcasClass
The corresponding loaded JCas Class for this UIMA type, may be a JCas class associated with a UIMA supertype if no JCas class is found for this type.
-
jcasType
final int jcasType
NOT the TypeCode, but instead, the unique int assigned to the JCas class when it gets loaded Might be -1 if the JCasClassInfo instance is for a non-JCas instantiable type
-
features
final FSClassRegistry.JCasClassFeatureInfo[] features
-
-
Constructor Detail
-
JCasClassInfo
JCasClassInfo(java.lang.Class<? extends TOP> jcasClass, FsGenerator3 generator, int jcasType)
-
-
Method Detail
-
isCopydown
boolean isCopydown(TypeImpl ti)
-
isCopydown
boolean isCopydown(java.lang.String jcasClassName)
-
isPearOverride
boolean isPearOverride(TypeSystemImpl tsi)
-
getUimaType
TypeImpl getUimaType(TypeSystemImpl tsi)
-
-