Class MorphosyntacticTagsAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.analysis.morfologik.MorphosyntacticTagsAttributeImpl
- All Implemented Interfaces:
Cloneable
,MorphosyntacticTagsAttribute
,Attribute
public class MorphosyntacticTagsAttributeImpl
extends AttributeImpl
implements MorphosyntacticTagsAttribute
Morphosyntactic annotations for surface forms.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear to default value.clone()
void
copyTo
(AttributeImpl target) boolean
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.Methods inherited from class org.apache.lucene.util.AttributeImpl
end, reflectAsString
-
Constructor Details
-
MorphosyntacticTagsAttributeImpl
public MorphosyntacticTagsAttributeImpl()Initializes this attribute with no tags
-
-
Method Details
-
getTags
Returns the POS tag of the term. If you need a copy of this char sequence, copy its contents (and cloneStringBuilder
s) because it changes with each new term to avoid unnecessary memory allocations.- Specified by:
getTags
in interfaceMorphosyntacticTagsAttribute
-
clear
public void clear()Description copied from interface:MorphosyntacticTagsAttribute
Clear to default value.- Specified by:
clear
in interfaceMorphosyntacticTagsAttribute
- Specified by:
clear
in classAttributeImpl
-
equals
-
hashCode
public int hashCode() -
setTags
Sets the internal tags reference to the given list. The contents is not copied.- Specified by:
setTags
in interfaceMorphosyntacticTagsAttribute
- Parameters:
tags
- A list of POS tags corresponding to current lemma.
-
copyTo
- Specified by:
copyTo
in classAttributeImpl
-
clone
- Overrides:
clone
in classAttributeImpl
-
reflectWith
- Specified by:
reflectWith
in classAttributeImpl
-