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 |
reflectWith(AttributeReflector reflector) |
void |
setTags(List<StringBuilder> tags)
Sets the internal tags reference to the given list.
|
reflectAsString
public MorphosyntacticTagsAttributeImpl()
public List<StringBuilder> getTags()
StringBuilder
s) because it changes with
each new term to avoid unnecessary memory allocations.getTags
in interface MorphosyntacticTagsAttribute
public void clear()
MorphosyntacticTagsAttribute
clear
in interface MorphosyntacticTagsAttribute
clear
in class AttributeImpl
public void setTags(List<StringBuilder> tags)
setTags
in interface MorphosyntacticTagsAttribute
tags
- A list of POS tags corresponding to current lemma.public void copyTo(AttributeImpl target)
copyTo
in class AttributeImpl
public MorphosyntacticTagsAttributeImpl clone()
clone
in class AttributeImpl
public void reflectWith(AttributeReflector reflector)
reflectWith
in class AttributeImpl
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.