public class PositionLengthAttributeImpl extends AttributeImpl implements PositionLengthAttribute, Cloneable
PositionLengthAttribute.| Constructor and Description |
|---|
PositionLengthAttributeImpl()
Initializes this attribute with position length of 1.
|
| 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)
Set the position length of this Token.
|
clone, reflectAsString, reflectWithpublic PositionLengthAttributeImpl()
public void setPositionLength(int positionLength)
PositionLengthAttributeThe default value is one.
setPositionLength in interface PositionLengthAttributepositionLength - how many positions this token
spans.PositionLengthAttribute.getPositionLength()public int getPositionLength()
PositionLengthAttributegetPositionLength in interface PositionLengthAttributePositionLengthAttribute.setPositionLength(int)public void clear()
AttributeImplclear in class AttributeImplpublic void copyTo(AttributeImpl target)
AttributeImplcopyTo in class AttributeImplCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.