A Token's lexical type. The Default value is "word".
More...
#include <TypeAttribute.h>
A Token's lexical type. The Default value is "word".
◆ TypeAttribute() [1/2]
Lucene::TypeAttribute::TypeAttribute |
( |
| ) |
|
◆ TypeAttribute() [2/2]
Lucene::TypeAttribute::TypeAttribute |
( |
const String & |
type | ) |
|
◆ ~TypeAttribute()
virtual Lucene::TypeAttribute::~TypeAttribute |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::TypeAttribute::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ clear()
virtual void Lucene::TypeAttribute::clear |
( |
| ) |
|
|
virtual |
Clears the values in this Attribute and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.
Implements Lucene::Attribute.
◆ clone()
Shallow clone. Subclasses must override this if they need to clone any members deeply.
- Parameters
-
base | clone reference - null when called initially, then set in top virtual override. |
Implements Lucene::Attribute.
◆ copyTo()
virtual void Lucene::TypeAttribute::copyTo |
( |
const AttributePtr & |
target | ) |
|
|
virtual |
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.
Implements Lucene::Attribute.
◆ DEFAULT_TYPE()
static const String & Lucene::TypeAttribute::DEFAULT_TYPE |
( |
| ) |
|
|
staticprotected |
◆ equals()
virtual bool Lucene::TypeAttribute::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
◆ getClassName()
virtual String Lucene::TypeAttribute::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ hashCode()
virtual int32_t Lucene::TypeAttribute::hashCode |
( |
| ) |
|
|
virtual |
Subclasses must implement this method and should compute a hashCode similar to this:
int32_t hashCode() { int32_t code = startOffset; code = code * 31 + endOffset; return code; }
see also equals(Object)
Implements Lucene::Attribute.
◆ setType()
void Lucene::TypeAttribute::setType |
( |
const String & |
type | ) |
|
◆ shared_from_this()
boost::shared_ptr< TypeAttribute > Lucene::TypeAttribute::shared_from_this |
( |
| ) |
|
|
inline |
◆ toString()
virtual String Lucene::TypeAttribute::toString |
( |
| ) |
|
|
virtual |
◆ type()
String Lucene::TypeAttribute::type |
( |
| ) |
|
Returns this Token's lexical type. Defaults to "word".
◆ _type
String Lucene::TypeAttribute::_type |
|
protected |
The documentation for this class was generated from the following file: