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, toString
public void setPositionLength(int positionLength)
setPositionLength
in interface PositionLengthAttribute
positionLength
- 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 PositionLengthAttribute
setPositionLength(int)
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl