Package org.apache.uima.cas.impl
Class FeatureStructureImplC
java.lang.Object
org.apache.uima.cas.impl.FeatureStructureImplC
- All Implemented Interfaces:
Cloneable
,FeatureStructure
,FeatureStructureImpl
- Direct Known Subclasses:
TOP
Feature structure implementation (for non JCas and JCas)
Each FS has
- int data
- used for boolean, byte, short, int, long, float, double data
-- long and double use 2 int slots
- may be null if all slots are in JCas cover objects as fields
- ref data
- used for references to other Java objects, such as
-- strings
-- other feature structures
-- arbitrary Java Objects
- may be null if all slots are in JCas cover objects as fields
- an id: an incrementing integer, starting at 1, per CAS, of all FSs created for that CAS
- a ref to the casView where this FS was created
- a ref to the TypeImpl for this class
-- can't be static - may be multiple type systems in use
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
FeatureStructureImplC
(int id) For use in creating search keysprotected
FeatureStructureImplC
(TypeImpl type, CASImpl casView) For non-JCas use, Internal Use Only, called by cas.createFS via generatorsprotected
FeatureStructureImplC
(JCasImpl jcasImpl) For JCas use (done this way to allow "final") The TypeImpl is derived from the JCas cover class nameprotected
FeatureStructureImplC
(JCasImpl jcasImpl, int aId) For temporary marker annotations. -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy int and ref data for two instances, each having the exact same typevoid
void
boolean
_getBooleanValueNc
(int adjOffset) boolean
byte
_getByteValueNc
(int adjOffset) byte
_getByteValueNc
(FeatureImpl feat) double
_getDoubleValueNc
(int adjOffset) double
protected FeatureImpl
_getFeatFromAdjOffset
(int adjOffset, boolean isInInt) _getFeatureValueNc
(int adjOffset) float
_getFloatValueNc
(int adjOffset) float
int
_getIntLikeValue
(SlotKinds.SlotKind slotKind, FeatureImpl f) for compressed form 4 - for getting the prev value of int-like slots Uses unchecked forms for feature accessint
_getIntValueNc
(int adjOffset) int
_getIntValueNc
(FeatureImpl feat) long
_getLongValueNc
(int adjOffset) long
_getLongValueNc
(FeatureImpl feat) _getRefValueCommon
(int adjOffset) short
_getShortValueNc
(int adjOffset) short
_getShortValueNc
(FeatureImpl feat) _getStringValueNc
(int adjOffset) _getStringValueNc
(FeatureImpl feat) int
starts with _final TypeImpl
_getView()
final int
_id()
return the unique (to this CAS) id of this feature structureprotected boolean
boolean
protected boolean
<N extends TOP>
NCalled to convert to the base FS from a Pear versionprotected <N extends TOP>
NCalled when setting a FS value which might be a trampoline<N extends TOP>
Nprotected <N extends TOP>
N_maybeGetPearFs
(N v) Called when getting a FS value which might need to return a Pear context's trampolineprotected void
All callers of this must insure fs is not indexed in **Any** Viewfinal void
_setBooleanValueNcNj
(int adjOffset, boolean v) final void
_setBooleanValueNcNj
(FeatureImpl fi, boolean v) void
_setBooleanValueNfc
(int adjOffset, boolean v) void
_setByteValueNcNj
(int adjOffset, byte v) void
_setByteValueNcNj
(FeatureImpl fi, byte v) void
_setByteValueNfc
(int adjOffset, byte v) void
_setDoubleValueNcNj
(int adjOffset, double v) void
_setDoubleValueNcNj
(FeatureImpl fi, double v) protected void
_setDoubleValueNfc
(int adjOffset, double v) void
_setFeatureValueNcNj
(int adjOffset, Object v) void
void
_setFeatureValueNcWj
(int adjOffset, FeatureStructure v) Nc - no check, Wj = with journaling if neededvoid
_setFloatValueNcNj
(int adjOffset, float v) void
_setFloatValueNcNj
(FeatureImpl fi, float v) protected void
_setFloatValueNfc
(int adjOffset, float v) protected void
void
_setIntLikeValue
(SlotKinds.SlotKind slotKind, FeatureImpl fi, int v) Internal Use onlyvoid
_setIntLikeValueNcNj
(SlotKinds.SlotKind slotKind, FeatureImpl fi, int v) Internal Use only - no feature check, no journalingprotected void
_setIntValueCJ
(FeatureImpl fi, int v) All 3 checksvoid
_setIntValueNcNj
(int adjOffset, int v) void
_setIntValueNcNj
(FeatureImpl fi, int v) void
_setIntValueNfc
(int adjOffset, int v) protected void
_setIntValueNfcCJ
(int adjOffset, int v) 2 checks, no feature checkprotected void
protected void
_setLongValueCJ
(FeatureImpl fi, long v) All 3 checks for longvoid
_setLongValueNcNj
(int adjOffset, long v) void
_setLongValueNcNj
(FeatureImpl fi, long v) void
_setLongValueNfc
(int adjOffset, long v) protected void
_setLongValueNfcCJ
(FeatureImpl fi, long v) 2 checks, no feature checkprotected void
protected void
_setRefValueCJ
(FeatureImpl fi, Object v) void
_setRefValueCommon
(int adjOffset, Object v) protected void
protected void
_setRefValueNfcCJ
(FeatureImpl fi, Object v) 2 checks, no feature checkvoid
_setShortValueNcNj
(int adjOffset, short v) void
_setShortValueNcNj
(FeatureImpl fi, short v) void
_setShortValueNfc
(int adjOffset, short v) void
_setStringValueNcNj
(FeatureImpl fi, String v) void
_setStringValueNcWj
(int adjOffset, String v) Skips substring range checking, but maybe does journallingvoid
_setStringValueNfc
(int adjOffset, String v) protected final void
_setTypeImpl
(TypeImpl ti) void
add the corresponding FeatureStructure to all Cas indexes in the view where this FS was createdvoid
addToIndexes
(CAS cas) void
addToIndexes
(JCas jcas) add this FS to indexes in a specific view, perhaps different from the creation viewclone()
See http://www.javaworld.com/article/2076332/java-se/how-to-avoid-traps-and-correctly-override-methods-from-java-lang-object.html for suggestions on avoiding bugs in implementing clone Because we have final fields for _intData, _refData, and _id, we can't use clone.static int
boolean
A feature structure is equal to another feature structure iff it is identical in the underlying representation.final int
NOTE: Possible name collisionboolean
getBooleanValue
(Feature feat) G E T T E R S (The array getters are part of the Classes for the built-in arrays, here are only the non-array ones) getXyzValue(Feature feat) - this is the standard from V2 plain API - it does validity checking (normally) that the feature belongs to the type getXyzValueNc(FeatureImpl feat) - skips the validity checking that the feature belongs to the type.byte
getByteValue
(Feature feat) Get the byte value of a feature.getCAS()
double
getDoubleValue
(Feature feat) Get the double value of a feature.getFeatureValue
(Feature feat) Get a feature value.Get the value of the feature as a string if the type of the feature is one of the primitive type.float
getFloatValue
(Feature feat) Get the float value of a feature.int
getIntValue
(Feature feat) Get the int value of a feature.long
getLongValue
(Feature feat) Get the long value of a feature.short
getShortValue
(Feature feat) Get the short value of a feature.getStringValue
(Feature feat) Get the string value under a feature.getType()
Returns the UIMA TypeImpl valueint
int
hashCode()
Will return a hash code that's consistent with equality, i.e., if two FSs are equal, they will also return the same hash code.void
prettyPrint
(int indent, int incr, StringBuffer buf, boolean useShortNames) void
prettyPrint
(int indent, int incr, StringBuffer buf, boolean useShortNames, String s) Deprecated.use form with StringBuilder (not StringBuffer)void
prettyPrint
(int indent, int incr, StringBuffer buf, boolean useShortNames, String s, FeatureStructureImplC.PrintReferences printRefs) Deprecated.because uses StringBuffer, not builder, for version 2 compatibility onlyvoid
prettyPrint
(int indent, int incr, StringBuilder buf, boolean useShortNames) void
prettyPrint
(int indent, int incr, StringBuilder buf, boolean useShortNames, String s) Top level, does computation of self-ref Pretty prints this Feature Structure, no trailing nlvoid
prettyPrint
(int indent, int incr, StringBuilder buf, boolean useShortNames, String s, FeatureStructureImplC.PrintReferences printRefs) void
void
remove the corresponding FeatureStructure from all Cas indexes in the view where this FS was createdvoid
removeFromIndexes
(CAS cas) remove this FS from indexes in a specific view, perhaps different from the view where this was created.void
removeFromIndexes
(JCas jcas) remove this FS from indexes in a specific view, perhaps different from the view where this was created.void
setBooleanValue
(Feature feat, boolean v) Set the boolean value of a feature.void
setByteValue
(Feature feat, byte v) Set the byte (8 bit) value of a feature.void
setDoubleValue
(Feature feat, double v) Set the double value of a feature.void
setFeatureValue
(Feature feat, FeatureStructure v) Set a feature value to another FS.void
setFeatureValueFromString
(Feature feat, String s) Sets the value of a feature from a string input if the feature type is one of the primitive types.void
setFloatValue
(Feature feat, float v) Set the float value of a feature.void
setIntValue
(Feature feat, int v) Set the int value of a feature.void
setLongValue
(Feature feat, long v) Set the long (64 bit) value of a feature.void
setShortValue
(Feature feat, short v) Set the short (16 bit) value of a feature.void
setStringValue
(Feature feat, String v) Set the string value of a feature.toString()
toString
(int indent) protected static final int
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.uima.cas.FeatureStructure
getJCas
-
Field Details
-
DISABLE_RUNTIME_FEATURE_VALIDATION
- See Also:
-
IS_ENABLE_RUNTIME_FEATURE_VALIDATION
public static final boolean IS_ENABLE_RUNTIME_FEATURE_VALIDATION -
DISABLE_RUNTIME_FEATURE_VALUE_VALIDATION
- See Also:
-
IS_ENABLE_RUNTIME_FEATURE_VALUE_VALIDATION
public static final boolean IS_ENABLE_RUNTIME_FEATURE_VALUE_VALIDATION -
V2_PRETTY_PRINT
- See Also:
-
IS_V2_PRETTY_PRINT
public static final boolean IS_V2_PRETTY_PRINT -
_id
protected final int _id -
_casView
The view this Feature Structure was originally created in. Feature Structures may be indexed in multiple views, or in no views. Also used to access other metadata including the type system
-
-
Constructor Details
-
FeatureStructureImplC
public FeatureStructureImplC() -
FeatureStructureImplC
protected FeatureStructureImplC(int id) For use in creating search keys- Parameters:
id
- -
-
FeatureStructureImplC
For non-JCas use, Internal Use Only, called by cas.createFS via generators -
FeatureStructureImplC
For JCas use (done this way to allow "final") The TypeImpl is derived from the JCas cover class name- Parameters:
jcasImpl
- - the view this is being created in
-
FeatureStructureImplC
For temporary marker annotations. Does not assign an ID from the CAS ID generator and never retains the annotation. We also do not trace this annotation.
-
-
Method Details
-
addToIndexes
public void addToIndexes()add the corresponding FeatureStructure to all Cas indexes in the view where this FS was created -
addToIndexes
add this FS to indexes in a specific view, perhaps different from the creation view- Parameters:
jcas
- the JCas
-
addToIndexes
-
removeFromIndexes
public void removeFromIndexes()remove the corresponding FeatureStructure from all Cas indexes in the view where this FS was created -
removeFromIndexes
remove this FS from indexes in a specific view, perhaps different from the view where this was created.- Parameters:
cas
- the Cas
-
removeFromIndexes
remove this FS from indexes in a specific view, perhaps different from the view where this was created.- Parameters:
jcas
- the Cas
-
getLowLevelCas
-
getAddress
public final int getAddress()NOTE: Possible name collision- Specified by:
getAddress
in interfaceFeatureStructure
- Returns:
- the internal id of this fs - unique to this CAS, a positive int
-
_id
public final int _id()Description copied from interface:FeatureStructure
return the unique (to this CAS) id of this feature structure- Specified by:
_id
in interfaceFeatureStructure
- Returns:
- the id
-
getType
Returns the UIMA TypeImpl value- Specified by:
getType
in interfaceFeatureStructure
- Returns:
- The type.
-
_getTypeCode
public int _getTypeCode()starts with _- Specified by:
_getTypeCode
in interfaceFeatureStructure
- Returns:
- the UIMA TypeImpl for this Feature Structure
-
_getView
-
setBooleanValue
Description copied from interface:FeatureStructure
Set the boolean value of a feature.- Specified by:
setBooleanValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The boolean value we're setting the feature to.
-
_setBooleanValueNfc
public void _setBooleanValueNfc(int adjOffset, boolean v) -
_setBooleanValueNcNj
-
_setBooleanValueNcNj
public final void _setBooleanValueNcNj(int adjOffset, boolean v) -
setByteValue
Description copied from interface:FeatureStructure
Set the byte (8 bit) value of a feature.- Specified by:
setByteValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The 8bit value we're setting the feature to.
-
_setByteValueNfc
public void _setByteValueNfc(int adjOffset, byte v) -
_setByteValueNcNj
-
_setByteValueNcNj
public void _setByteValueNcNj(int adjOffset, byte v) -
setShortValue
Description copied from interface:FeatureStructure
Set the short (16 bit) value of a feature.- Specified by:
setShortValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The short (16bit) value we're setting the feature to.
-
_setShortValueNfc
public void _setShortValueNfc(int adjOffset, short v) -
_setShortValueNcNj
-
_setShortValueNcNj
public void _setShortValueNcNj(int adjOffset, short v) -
setIntValue
Description copied from interface:FeatureStructure
Set the int value of a feature.- Specified by:
setIntValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The int we're setting the feature to.
-
_setIntValueNfc
public void _setIntValueNfc(int adjOffset, int v) -
_setIntValueNcNj
-
_setIntValueNcNj
public void _setIntValueNcNj(int adjOffset, int v) -
setLongValue
Description copied from interface:FeatureStructure
Set the long (64 bit) value of a feature.- Specified by:
setLongValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The long (64bit) value we're setting the feature to.
-
_setLongValueNfc
public void _setLongValueNfc(int adjOffset, long v) -
_setLongValueNcNj
-
_setLongValueNcNj
public void _setLongValueNcNj(int adjOffset, long v) -
setFloatValue
Description copied from interface:FeatureStructure
Set the float value of a feature.- Specified by:
setFloatValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The float we're setting the feature to.
-
_setFloatValueNfc
protected void _setFloatValueNfc(int adjOffset, float v) -
_setFloatValueNcNj
-
_setFloatValueNcNj
public void _setFloatValueNcNj(int adjOffset, float v) -
setDoubleValue
Description copied from interface:FeatureStructure
Set the double value of a feature.- Specified by:
setDoubleValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The double value we're setting the feature to.
-
_setDoubleValueNfc
protected void _setDoubleValueNfc(int adjOffset, double v) -
_setDoubleValueNcNj
-
_setDoubleValueNcNj
public void _setDoubleValueNcNj(int adjOffset, double v) -
setStringValue
Description copied from interface:FeatureStructure
Set the string value of a feature.- Specified by:
setStringValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.v
- The string we're setting the feature to.
-
_setStringValueNfc
-
_setStringValueNcNj
-
_setStringValueNcWj
Skips substring range checking, but maybe does journalling- Parameters:
adjOffset
- offsetv
- to set
-
setFeatureValue
Description copied from interface:FeatureStructure
Set a feature value to another FS.- Specified by:
setFeatureValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value should be set.v
- The value FS.
-
_setFeatureValueNcNj
-
_setFeatureValueNcNj
-
_maybeGetBaseForPearFs
Called when setting a FS value which might be a trampoline- Type Parameters:
N
- the type of the FS- Parameters:
v
- the FS to check- Returns:
- the FS or if it was a trampoline, the base FS
-
_maybeGetBaseForPearFs
Called to convert to the base FS from a Pear version- Type Parameters:
N
- the type of the FS- Returns:
- the FS or if it was a trampoline, the base FS
-
_maybeGetPearFs
Called when getting a FS value which might need to return a Pear context's trampoline- Type Parameters:
N
- the type of the FS- Parameters:
v
- the FS to check- Returns:
- the FS or if we're in a Pear context, perhaps the trampoline (only some classes might have trampolines)
-
_maybeGetPearFs
- Type Parameters:
N
- the type of the FS- Returns:
- the FS or if we're in a Pear context and the PEAR defines a different version, the PEAR version.
-
_setFeatureValueNcWj
Nc - no check, Wj = with journaling if needed- Parameters:
adjOffset
- -v
- -
-
setFeatureValueFromString
Description copied from interface:FeatureStructure
Sets the value of a feature from a string input if the feature type is one of the primitive types.- Specified by:
setFeatureValueFromString
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.s
- The string value that the feature will be set to.- Throws:
CASRuntimeException
- Iffeat
is not a primitive type or the value cannot be converted to this type.
-
_setIntValueCJ
All 3 checks- Parameters:
fi
- - the featurev
- - the value
-
_setLongValueCJ
All 3 checks for long- Parameters:
fi
- - the featurev
- - the value
-
_setIntValueNfcCJ
protected void _setIntValueNfcCJ(int adjOffset, int v) 2 checks, no feature check- Parameters:
adjOffset
- - the feature offsetv
- - the value
-
_setLongValueNfcCJ
2 checks, no feature check- Parameters:
fi
- - the featurev
- - the value
-
_setRefValueCJ
-
_setRefValueNfcCJ
2 checks, no feature check- Parameters:
fi
- - the featurev
- - the value
-
getBooleanValue
G E T T E R S (The array getters are part of the Classes for the built-in arrays, here are only the non-array ones) getXyzValue(Feature feat) - this is the standard from V2 plain API - it does validity checking (normally) that the feature belongs to the type getXyzValueNc(FeatureImpl feat) - skips the validity checking that the feature belongs to the type.- Specified by:
getBooleanValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value int;
0
if the value has not been set.
-
_getBooleanValueNc
-
_getBooleanValueNc
public boolean _getBooleanValueNc(int adjOffset) -
getByteValue
Description copied from interface:FeatureStructure
Get the byte value of a feature. This method will throw an exception if the feature is not byte valued.- Specified by:
getByteValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to set.- Returns:
- The value byte;
0
if the value has not been set.
-
_getByteValueNc
-
_getByteValueNc
public byte _getByteValueNc(int adjOffset) -
getShortValue
Description copied from interface:FeatureStructure
Get the short value of a feature. This method will throw an exception if the feature is not short valued.- Specified by:
getShortValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value int;
0
if the value has not been set.
-
_getShortValueNc
-
_getShortValueNc
public short _getShortValueNc(int adjOffset) -
getIntValue
Description copied from interface:FeatureStructure
Get the int value of a feature. This method will throw an exception if the feature is not int valued.- Specified by:
getIntValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value int;
0
if the value has not been set.
-
_getIntValueNc
-
_getIntValueNc
public int _getIntValueNc(int adjOffset) -
getLongValue
Description copied from interface:FeatureStructure
Get the long value of a feature. This method will throw an exception if the feature is not long valued.- Specified by:
getLongValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value int;
0
if the value has not been set.
-
_getLongValueNc
-
_getLongValueNc
public long _getLongValueNc(int adjOffset) -
getFloatValue
Description copied from interface:FeatureStructure
Get the float value of a feature. This method will throw an exception if the feature is not float valued.- Specified by:
getFloatValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value float;
0.0
if the value has not been set.
-
_getFloatValueNc
-
_getFloatValueNc
public float _getFloatValueNc(int adjOffset) -
getDoubleValue
Description copied from interface:FeatureStructure
Get the double value of a feature. This method will throw an exception if the feature is not double valued.- Specified by:
getDoubleValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value int;
0
if the value has not been set.
-
_getDoubleValueNc
-
_getDoubleValueNc
public double _getDoubleValueNc(int adjOffset) -
getStringValue
Description copied from interface:FeatureStructure
Get the string value under a feature.- Specified by:
getStringValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature for which we want the value.- Returns:
- The value of this feature; may be
null
if the value has not been set.
-
_getStringValueNc
-
_getStringValueNc
-
getFeatureValue
Description copied from interface:FeatureStructure
Get a feature value.- Specified by:
getFeatureValue
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get.- Returns:
- The value; may be
null
if the value has not been set.
-
_getFeatureValueNc
-
_getFeatureValueNc
-
getCAS
- Specified by:
getCAS
in interfaceFeatureStructure
- Returns:
- the CAS view where this FS was created
-
getCASImpl
-
clone
See http://www.javaworld.com/article/2076332/java-se/how-to-avoid-traps-and-correctly-override-methods-from-java-lang-object.html for suggestions on avoiding bugs in implementing clone Because we have final fields for _intData, _refData, and _id, we can't use clone. Instead, we use the createFS to create the FS of the right type. This will use the generators. Strategy for cloning: Goal is to create an independent instance of some subtype of this class, with all the fields properly copied from this instance. - some fields could be in the _intData and _refData - some fields could be stored as features Subcases to handle: - arrays - these have no features. Note: CasCopier doesn't call this because it needs to do a deep copy This is not used by the framework- Specified by:
clone
in interfaceFeatureStructure
- Overrides:
clone
in classObject
- Returns:
- a new Feature Structure as a new instance of the same class, with a new _id field, with its features set to the values of the features in this Feature Structure
- Throws:
CASRuntimeException
- (different from Object.clone()) if an exception occurs
-
hashCode
public int hashCode()Description copied from interface:FeatureStructure
Will return a hash code that's consistent with equality, i.e., if two FSs are equal, they will also return the same hash code.- Specified by:
hashCode
in interfaceFeatureStructure
- Overrides:
hashCode
in classObject
- Returns:
- The hash code.
-
equals
Description copied from interface:FeatureStructure
A feature structure is equal to another feature structure iff it is identical in the underlying representation.- Specified by:
equals
in interfaceFeatureStructure
- Overrides:
equals
in classObject
-
toString
-
toString
- Specified by:
toString
in interfaceFeatureStructureImpl
-
prettyPrint
- Specified by:
prettyPrint
in interfaceFeatureStructureImpl
-
prettyPrint
- Specified by:
prettyPrint
in interfaceFeatureStructureImpl
-
prettyPrint
@Deprecated public void prettyPrint(int indent, int incr, StringBuffer buf, boolean useShortNames, String s) Deprecated.use form with StringBuilder (not StringBuffer)Top level, does computation of self-ref Pretty prints this Feature Structure, no trailing nl Old form - uses string buffer.- Specified by:
prettyPrint
in interfaceFeatureStructureImpl
- Parameters:
indent
- the indent amountincr
- the amount the indent is increased for a levelbuf
- where the resulting string is builtuseShortNames
- true to use short names
- extra string to print
-
prettyPrint
Top level, does computation of self-ref Pretty prints this Feature Structure, no trailing nl- Specified by:
prettyPrint
in interfaceFeatureStructureImpl
- Parameters:
indent
- the indent amountincr
- the amount the indent is increased for a levelbuf
- where the resulting string is builtuseShortNames
- true to use short names
- extra string to print
-
prettyPrint
@Deprecated public void prettyPrint(int indent, int incr, StringBuffer buf, boolean useShortNames, String s, FeatureStructureImplC.PrintReferences printRefs) Deprecated.because uses StringBuffer, not builder, for version 2 compatibility onlyInternal Use Only, public only for backwards compatibility- Parameters:
indent
- -incr
- -buf
- -useShortNames
- -s
- -printRefs
- -
-
prettyPrint
public void prettyPrint(int indent, int incr, StringBuilder buf, boolean useShortNames, String s, FeatureStructureImplC.PrintReferences printRefs) -
prettyPrintShort
- Parameters:
sb
- -
-
addStringOrPrimitive
-
getTypeIndexID
public int getTypeIndexID() -
_setIntLikeValue
Internal Use only- Parameters:
slotKind
- -fi
- -v
- -
-
_setIntLikeValueNcNj
Internal Use only - no feature check, no journaling- Parameters:
slotKind
- -fi
- -v
- -
-
_getIntLikeValue
for compressed form 4 - for getting the prev value of int-like slots Uses unchecked forms for feature access- Parameters:
slotKind
- -f
- -- Returns:
- -
-
getFeatureValueAsString
Description copied from interface:FeatureStructure
Get the value of the feature as a string if the type of the feature is one of the primitive type.- Specified by:
getFeatureValueAsString
in interfaceFeatureStructure
- Parameters:
feat
- The feature whose value we want to get and whose type is one of the primitive types.- Returns:
- A string representation of the feature value.
-
_inSetSortedIndex
protected boolean _inSetSortedIndex() -
_setInSetSortedIndexed
protected void _setInSetSortedIndexed() -
_resetInSetSortedIndex
protected void _resetInSetSortedIndex()All callers of this must insure fs is not indexed in **Any** View -
_setJCasHashMapReserve
protected void _setJCasHashMapReserve() -
_isJCasHashMapReserve
public boolean _isJCasHashMapReserve() -
_setPearTrampoline
protected void _setPearTrampoline() -
_isPearTrampoline
protected boolean _isPearTrampoline() -
_getFeatFromAdjOffset
-
_getRefValueCommon
-
_setRefValueCommon
-
_setRefValueCommonWj
-
_copyIntAndRefArraysFrom
- Parameters:
src
- the FS to copy features from
-
_copyIntAndRefArraysEqTypesFrom
copy int and ref data for two instances, each having the exact same type- Parameters:
src
- the FS to copy features from
-
_copyIntArrayEqTypesFrom
- Parameters:
src
- the FS to copy features from
-
toShortString
-
_getTypeImpl
-
_setTypeImpl
-
compare
-
wrapGetIntCatchException
-