public class PositionLengthAttributeImpl extends AttributeImpl implements PositionLengthAttribute, Cloneable
enableBackwards| Constructor and Description |
|---|
PositionLengthAttributeImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the values in this AttributeImpl and resets it to its
default value.
|
void |
copyTo(AttributeImpl target)
Copies the values from this Attribute into the passed-in
target attribute.
|
boolean |
equals(Object other) |
int |
getPositionLength()
Returns the position length of this Token.
|
int |
hashCode() |
void |
setPositionLength(int positionLength) |
clone, reflectAsString, reflectWith, toStringpublic void setPositionLength(int positionLength)
setPositionLength in interface PositionLengthAttributepositionLength - how many positions this token
spans. NOTE: this is optional, and most analyzers
don't change the default value (1).public int getPositionLength()
getPositionLength in interface PositionLengthAttributesetPositionLength(int)public void clear()
AttributeImplclear in class AttributeImplpublic void copyTo(AttributeImpl target)
AttributeImplcopyTo in class AttributeImpl