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, reflectWith
public PositionLengthAttributeImpl()
public void setPositionLength(int positionLength)
PositionLengthAttribute
The default value is one.
setPositionLength
in interface PositionLengthAttribute
positionLength
- how many positions this token
spans.PositionLengthAttribute.getPositionLength()
public int getPositionLength()
PositionLengthAttribute
getPositionLength
in interface PositionLengthAttribute
PositionLengthAttribute.setPositionLength(int)
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.