The TermAttributeImpl type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TermAttributeImpl | Initializes a new instance of the TermAttributeImpl class |
Methods
Name | Description | |
---|---|---|
Clear | (Overrides AttributeImpl..::..Clear()()()().) | |
Clone | (Overrides AttributeImpl..::..Clone()()()().) | |
CopyTo | (Overrides AttributeImpl..::..CopyTo(AttributeImpl).) | |
Equals | (Overrides AttributeImpl..::..Equals(Object).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | (Overrides AttributeImpl..::..GetHashCode()()()().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResizeTermBuffer | Grows the termBuffer to at least size newSize, preserving the
existing content. Note: If the next operation is to change
the contents of the term buffer use
{@link #SetTermBuffer(char[], int, int)},
{@link #SetTermBuffer(String)}, or
{@link #SetTermBuffer(String, int, int)}
to optimally combine the resize with the setting of the termBuffer.
| |
SetTermBuffer(String) | Copies the contents of buffer into the termBuffer array. | |
SetTermBuffer(array<Char>[]()[][], Int32, Int32) | Copies the contents of buffer, starting at offset for
length characters, into the termBuffer array.
| |
SetTermBuffer(String, Int32, Int32) | Copies the contents of buffer, starting at offset and continuing
for length characters, into the termBuffer array.
| |
SetTermLength | Set number of valid characters (length of the term) in
the termBuffer array. Use this to truncate the termBuffer
or to synchronize with external manipulation of the termBuffer.
Note: to grow the size of the array,
use {@link #ResizeTermBuffer(int)} first.
| |
Term | Returns the Token's term text.
This method has a performance penalty
because the text is stored internally in a char[]. If
possible, use {@link #TermBuffer()} and {@link
#TermLength()} directly instead. If you really need a
String, use this method, which is nothing more than
a convenience call to new String(token.termBuffer(), 0, token.termLength()) | |
TermBuffer | Returns the internal termBuffer character array which
you can then directly alter. If the array is too
small for your token, use {@link
#ResizeTermBuffer(int)} to increase it. After
altering the buffer be sure to call {@link
#setTermLength} to record the number of valid
characters that were placed into the termBuffer.
| |
TermLength | Return number of valid characters (length of the term)
in the termBuffer array.
| |
ToString | (Overrides AttributeImpl..::..ToString()()()().) |