public class MorphosyntacticTagsAttributeImpl extends AttributeImpl implements MorphosyntacticTagsAttribute, Cloneable
MorphosyntacticTagsAttribute| Constructor and Description |
|---|
MorphosyntacticTagsAttributeImpl()
Initializes this attribute with no tags
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear to default value.
|
MorphosyntacticTagsAttributeImpl |
clone() |
void |
copyTo(AttributeImpl target) |
boolean |
equals(Object other) |
List<StringBuilder> |
getTags()
Returns the POS tag of the term.
|
int |
hashCode() |
void |
setTags(List<StringBuilder> tags)
Sets the internal tags reference to the given list.
|
String |
toString() |
reflectAsString, reflectWithpublic MorphosyntacticTagsAttributeImpl()
public List<StringBuilder> getTags()
StringBuilders) because it changes with
each new term to avoid unnecessary memory allocations.getTags in interface MorphosyntacticTagsAttributepublic void clear()
MorphosyntacticTagsAttributeclear in interface MorphosyntacticTagsAttributeclear in class AttributeImplpublic void setTags(List<StringBuilder> tags)
setTags in interface MorphosyntacticTagsAttributetags - A list of POS tags corresponding to current lemma.public void copyTo(AttributeImpl target)
copyTo in class AttributeImplpublic MorphosyntacticTagsAttributeImpl clone()
clone in class AttributeImplCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.